request_spot_instances 和 create_instances 与 InstanceMarketOptions 之间有什么区别
当您似乎可以通过指定 InstanceMarketOptions
来使用 create_instances
做同样的事情时,为什么还要有 request_spot_instances
呢? (在 AWS API 中,这是 RequestSpotInstances 与 RunInstances)
后续:如何从 create_instances
获取 Spot 请求 id?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它们非常相似,但是 RunInstances 可以创建现货仅请求单一实例类型。例如,
t2.micro
。RequestSpotInstances 更加通用和通用。这是因为您可以对 队列 实例数。这意味着您的一次性请求可以包含多种实例类型,例如
t2.micro
、m4.medium
、t3.large< /code>,或者更一般地说,例如创建具有
1GB 和
2 的任何实例类型。
They are very simillar, but RunInstances can create spot request only for a single instance type. For example,
t2.micro
.RequestSpotInstances is much more general and versatile. This is because you can make spot request for a fleet of instances. This means that your one spot request can contain numerous instance types, e.g.
t2.micro
,m4.medium
,t3.large
, or even more general that this, like create any instance type which has1GB<RAM<10GB
and2<CPU<16
.