EC2 spot instance termination notice when downscaling

↘锁芯ラ 提交于 2019-12-05 21:53:32

Auto Scaling Hooks allow you to create an event notification that an instance is going to be terminated (or launched).

The up-side: you get a lot more time. The default is 60 minutes, and you can send a heartbeat message to extend the time, or you can notify the service when your cleanup is done. If you don't respond, the event times out and finishes anyway.

The down-side: the notifications don't go to the instance itself, as the spot termination warnings do. They go to SNS or SQS. You'll either have to subscribe the instance to the notifications (subscribe each instance to the SNS topic on instance startup, for example) or you'll need to roll your own system to manage the messages and communicate with the instances.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!