[英]Why did my spot request get cancelled automatically?
I had requested a Spot instance for a single instance of t2.micro.我已经为 t2.micro 的单个实例请求了一个 Spot 实例。 An instance was assigned and the request was active.
分配了一个实例并且请求处于活动状态。 A few days later, after the instance ran for 9 days, the spot request was "cancelled".
几天后,实例运行 9 天后,Spot 请求被“取消”。 The status of the request was cancelled and the instances were terminated.
请求的状态已取消,实例已终止。
Questions:问题:
As a best practice for Spot, don't set a maximum price at all.作为 Spot 的最佳做法,根本不要设置最高价格。 it will be set to on-demand price by default and Spot prices can't go above on-demand prices so you won't be interrupted because of price change.
它将默认设置为按需价格,现货价格不能高于按需价格,因此您不会因为价格变化而中断。
The only reason you will be interrupted is when EC2 needs this capacity back for on-demand customers, which is the reason for Spot discounted prices.您将被中断的唯一原因是 EC2 需要为按需客户恢复此容量,这就是 Spot 折扣价格的原因。
Use Auto Scaling groups and Spot Fleet to launch and maintain a target capacity, and to automatically request instances to replace any that are interrupted.使用Auto Scaling 组和Spot 队列来启动和维护目标容量,并自动请求实例以替换任何中断的实例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.