How can Auto Scaling Groups span multiple Availability Zones to improve application availability?
Short answer
An Auto Scaling Group can be configured to launch instances across multiple Availability Zones within a region, automatically distributing instances as evenly as possible, so if an entire Availability Zone experiences an outage, the application continues running on instances…
Advertisement
AModel answer
An Auto Scaling Group can be configured to launch instances across multiple Availability Zones within a region, automatically distributing instances as evenly as possible, so if an entire Availability Zone experiences an outage, the application continues running on instances located in the remaining healthy zones, and the Auto Scaling Group automatically launches replacement capacity in the available zones to maintain desired capacity.
Example
aws autoscaling update-auto-scaling-group --auto-scaling-group-name my-asg --vpc-zone-identifier 'subnet-111,subnet-222,subnet-333'
Real-world example
A company running a critical application spreads its Auto Scaling Group across three separate Availability Zones, ensuring that even a complete failure of one entire data center does not take down the application for its users.
Likely follow-ups
- How does the Auto Scaling Group decide how many instances to place in each Availability Zone?
- What happens to capacity distribution if one Availability Zone runs out of available capacity for a specific instance type?
Related topics