休眠 EC2 spot 实例。什么时候可以,什么时候不能?

Hibernating EC2 spot instances. When is it possible, when is it not?

我对何时可以或不可以休眠 Spot 实例感到困惑。

(1.) 在“休眠先决条件”下,文档说休眠“可用于按需实例和预留实例。它不适用于 Spot 实例。有关更多信息,请参阅休眠中断的 Spot 实例。 “ https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html#hibernating-prerequisites

(2.)但是下面的文章:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html#hibernate-spot-instances

...表示您可以将实例设置为在中断时自动休眠。


如何解释这种明显的矛盾?

我的猜测是您无法从 spot 实例手动启动休眠,但您可以将 spot 配置为在中断时自动休眠。是吗?

我认为它是受支持的,但也有一些例外。我怀疑这句话少了 all:

这个词

It is not available for all Spot Instances.

下一句 Hibernating interrupted Spot Instances 中链接的页面描述了对 spot 实例的要求。

您不能手动休眠 Spot 实例。

但是,如果 Spot 实例中断并且已配置休眠,则 Spot 实例可以自动休眠

参见:Preparing for instance hibernation