【问题标题】:Hibernating EC2 spot instances. When is it possible, when is it not?休眠 EC2 Spot 实例。什么时候可以,什么时候不可以?
【发布时间】:2020-07-07 14:45:31
【问题描述】:

我对您何时可以休眠 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 配置为在中断时自动休眠。对吗?

【问题讨论】:

  • 我认为您是正确的,您不能手动休眠 Spot 实例,但如果 Spot 实例中断,它可以休眠。
  • @JohnRotenstein 是对的。补充一下,只有以下 Spot 实例可以在中断时休眠:C3、C4、C5、M4、M5、R3 和 R4,内存小于 100 GB

标签: amazon-web-services amazon-ec2 spot-instances


【解决方案1】:

您不能手动使 Spot 实例休眠。

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

见:Preparing for instance hibernation

【讨论】:

    【解决方案2】:

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

    它不适用于所有 Spot 实例。

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

    【讨论】:

      猜你喜欢
      • 2011-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-17
      • 1970-01-01
      • 1970-01-01
      • 2015-01-30
      • 2012-07-09
      相关资源
      最近更新 更多