Auto Scaling group Availability Zone distribution - Amazon EC2 Auto Scaling
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Auto Scaling group Availability Zone distribution

The following information describes Auto Scaling group Availability Zone strategies.

Balanced best effort

Auto Scaling maintains an equal number of instances across enabled Availability Zones. If launch attempts fail in an Availability Zone, Auto Scaling attempts to launch instances in another healthy Availability Zone. This strategy is important for applications that need Availability Zone redundancy and are not impacted by imbalanced groups.

Balanced only

Auto Scaling maintains an equal number of instances across enabled Availability Zones. If launch attempts fail in an Availability Zone, Auto Scaling will continue to attempt to launch instances in the Availability Zone. This strategy is important to meet certain requirements such as quorum-based workloads or if your Auto Scaling group can tolerate the loss of an Availability Zone because you have sufficient capacity in the remaining Availability Zones.

Reservations then balanced

Auto Scaling first launches instances into the Capacity Reservations associated with the group, prioritizing reservation use over even distribution across the group's enabled Availability Zones. After all available reservations are filled, Auto Scaling distributes any remaining capacity evenly across the enabled Availability Zones. Use this strategy for cost-sensitive workloads that use Capacity Reservations, such as GPU, high performance computing (HPC), or machine learning workloads. With this strategy, maximizing reservation utilization takes priority over even Availability Zone distribution.

You specify the reservations to prioritize by providing a Capacity Reservation group or an individual Capacity Reservation ID. You can specify the target in your launch template or on the Auto Scaling group using CapacityReservationTarget. To prioritize more than one reservation, you can create a Capacity Reservation resource group. This strategy supports On-Demand Capacity Reservations, Capacity Blocks, and interruptible Capacity Reservations.

Note

During scale in, Auto Scaling removes instances that are not in a reservation first, to preserve reservation utilization. If further scale in is required, Auto Scaling then removes reserved instances, starting with the Availability Zone that has the most reserved instances.

The Availability Zone distribution strategy selection is in the Network section of the AWS Management Console or you can use the create-auto-scaling-group or update-auto-scaling-group commands.

When you choose the Reservations then balanced strategy, you must also specify the Capacity Reservations to prioritize, either by Capacity Reservation group or by individual Capacity Reservation ID.

For more information, see Create Auto Scaling groups using launch templates.