2

我知道 Spot 服务将根据https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-根据价格匹配或容量是否可用来管理 Spot 实例并停止或启动它interrupts.html#specifying-spot-interruption-behavior

并且https://aws.amazon.com/about-aws/whats-new/2020/01/amazon-ec2-spot-instances-stopped-started-similar-to-on-demand-instances/ 提到现在可以手动停止或启动 Spot 实例。如果我手动停止 Spot 实例,我会感到困惑,只要满足价格/容量要求,Spot 服务会再次启动它? 还是会停止监控实例,直到我再次手动启动 Spot 实例?

4

1 回答 1

1

要回答您的问题,有两种请求。1) 一次性请求 2) 持久请求。

一次性请求:- 手动可以only terminate instance,您无法停止它。一旦您终止实例,请求就会消失。

持久请求:- 如果是持久请求,it will automatically launch an instance when you manually terminate the instance但是如果您手动停止它,那么您需要再次手动启动它。现场实例不会自动为您启动。文档

如果请求是持久的,则在您的 Spot 实例中断(aws 中断)后再次打开请求。如果请求是持久的并且您停止了 Spot 实例,则该请求仅在您启动 Spot 实例后打开

请注意

您只能停止/启动从持久请求启动且不属于队列或启动组、可用区组或 Spot 块的实例。 docs 当您停止实例时,请求进入禁用状态。

于 2021-04-19T01:23:58.193 回答