新实例将在 Auto scaling 中启动的位置?

where new instance will be launched in Auto scaling?

当我们有多个 AZ 时,有一套规则可以终止 Auto Scaling 实例。如果我们有多个可用区域,如果我们想扩大规模,同样的方法,实例将在何处创建。是否有任何层次结构?

根据 aws 文档,如果自动缩放组有多个可用区,aws 会尝试以均匀方式分配实例。因此,如果您想要的容量是 8,并且 az-1 中有 4 个实例,az-2 中有 3 个实例,则剩余的一个实例将在 az-2 中创建。

When one Availability Zone becomes unhealthy or unavailable, Amazon EC2 Auto Scaling launches new instances in an unaffected Availability Zone. When the unhealthy Availability Zone returns to a healthy state, Amazon EC2 Auto Scaling automatically redistributes the application instances evenly across all the Availability Zones for your Auto Scaling group. Amazon EC2 Auto Scaling does this by attempting to launch new instances in the Availability Zone with the fewest instances. If the attempt fails, however, Amazon EC2 Auto Scaling attempts to launch in other Availability Zones until it succeeds.

您可以阅读更多相关内容 here