简体   繁体   English

如何测试 AWS Spot 实例的停止启动

[英]how to test stop start of AWS Spot Instances

I am creating AWS spot instances on demand and wanted to keep interruption behavior as STOP, so that AWS can restart my VM as soon as price/demand meets.我正在按需创建 AWS Spot 实例,并希望将中断行为保持为 STOP,以便 AWS 可以在价格/需求满足时尽快重新启动我的 VM。

But the problem is AWS GUI doesn't have any option to STOP running spot instances.但问题是 AWS GUI 没有任何选项来停止运行 Spot 实例。 It just have option to terminate instances or cancel spot requests.它只能选择终止实例或取消现货请求。

I am developing some application which will resume itself on reboot.我正在开发一些应用程序,它将在重新启动时自行恢复。 I wanted to test the application by simulating AWS stop and restart behaviour.我想通过模拟 AWS 停止和重启行为来测试应用程序。

Thx in advance提前谢谢

~Ashish ~阿什什

As of now you cannot Stop a Spot Instance.截至目前,您无法停止 Spot 实例。

To simulate your application behavior, bid for minimum and wait for AWS to interrupt the instance.要模拟您的应用程序行为,请出价最低并等待 AWS 中断实例。
Make sure that your spot instance is Stop Interruption ready.确保您的 Spot 实例已准备好停止中断。

Reference: Spot Instance Interruptions参考: Spot 实例中断

You do not have an option to restart a SPOT instance.您没有重新启动 SPOT 实例的选项。 SPOT instance is not the right candidate for this kind of application. SPOT 实例不适合此类应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM