Vincent Teyssier
Vincent Teyssier

Reputation: 2217

Is google load balancer awaking sleeping instances?

I am planing to migrate to gcp and my front needs some level of reliability, but I am also cost constrained and cannot offer to double my instances.

Is it possible to have one running instance with a load balancer which test its health, and in case of failure would awake a sleeping copy of this instance ?

That would provide a kind of automatic fail-over with an interruption of service of 1 to 2 minutes, which is acceptable for my business.

Upvotes: 0

Views: 50

Answers (1)

jarmod
jarmod

Reputation: 78653

Sounds like you want a Managed Instance Group with autoscaling (minNumReplicas=1, maxNumReplicas=1) and autohealing. Managed Instance Groups can automatically identify and recreate unhealthy instances.

You can apply HTTP health checks to Managed Instance Groups to monitor and verify that servers are running properly on the instances in that group. If a health check determines that a service has failed on an instance, the group automatically recreates that instance.

Upvotes: 2

Related Questions