Does Elastic Beanstalk automatically create a new instance and fail-over if an instance fails?


I have several EB clusters, with capacity scaling based on CPU usage. For each cluster, the idle state is just 1 instance, and it will scale-up from there based on load.

But what about if an instance fails? Say that 1 instance above has some hardware or network fault, and the load balancer can't communicate with it? Will EB automatically spin-up a new instance and direct traffic to it?

And secondly, when creating a new instance, either due to load or in this fault scenario, does EB always choose a different Availability Zone, in order to maximize resilience? Or, do I have to specifically set the "Availability Zones" setting to something other than "Any" or "Any 1"?

Btw, I know that for the ultimate fault-tolerance, we should always have N+1 instances spread across zones... but I'm specifically asking about the scenario above when the minimum instances is 1.

Thank you.

asked 4 months ago161 views
1 Answer


EC2 in Elastic Beanstalk is managed by AutoScaling.
Due to the utoScaling specification, if a failure occurs in an Availability Zone or EC2, a new instance will be launched.
This behavior is the same even if there is only one instance.

Simplified automatic recovery is not initiated for instances in an Auto Scaling group. If your instance is part of an Auto Scaling group with health checks enabled, then the instance is replaced when it becomes impaired.

Better fault tolerance. Amazon EC2 Auto Scaling can detect when an instance is unhealthy, terminate it, and launch an instance to replace it. You can also configure Amazon EC2 Auto Scaling to use multiple Availability Zones. If one Availability Zone becomes unavailable, Amazon EC2 Auto Scaling can launch instances in another one to compensate.

profile picture
answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions