AWS - 重试失败后暂停自动缩放

AWS - Pause autoscaling after failed retries

我设置了一些 Autoscaling LifeCycle 挂钩,我的一些其他应用程序插入这些挂钩并执行各种操作(部署应用更新等)

但是,我知道在某些时候我的应用程序会失败并且生命周期挂钩将永远无法完成。因此,AWS 自动缩放将保留 spawning/terminating 个新实例,并可能吃掉我的钱并产生噪音。

是否有一些保护措施 - AWS 已经到位了吗? - 如果我检测到太多失败而没有成功,我可以添加暂停自动缩放操作吗?

AutoScaling 将在 24 小时内继续尝试启动新的 EC2 实例。

Suspending and Resuming Scaling Processes

You can suspend and then resume one or more of the scaling processes for your Auto Scaling group. This can be useful when you want to investigate a configuration problem or other issue with your web application and then make changes to your application, without triggering the scaling processes.

Amazon EC2 Auto Scaling can suspend processes for Auto Scaling groups that repeatedly fail to launch instances. This is known as an administrative suspension, and most commonly applies to Auto Scaling groups that have been trying to launch instances for over 24 hours but have not succeeded in launching any instances. You can resume processes suspended for administrative reasons.

据我所知,您无法更改此参数。