request_spot_instances 和 create_instances 与 InstanceMarketOptions 之间有什么区别

发布于 2025-01-16 02:38:25 字数 252 浏览 1 评论 0 原文

当您似乎可以通过指定 InstanceMarketOptions 来使用 create_instances 做同样的事情时,为什么还要有 request_spot_instances 呢? (在 AWS API 中,这是 RequestSpotInstances 与 RunInstances)

后续:如何从 create_instances 获取 Spot 请求 id?

Why is there request_spot_instances when it seems like you can do the same thing with create_instances by specifying InstanceMarketOptions? (In the AWS API that's RequestSpotInstances vs RunInstances)

Followup: How do you get the spot request id from create_instances?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光清浅 2025-01-23 02:38:25

它们非常相似,但是 RunInstances 可以创建现货仅请求单一实例类型。例如,t2.micro

RequestSpotInstances 更加通用和通用。这是因为您可以对 队列 实例数。这意味着您的一次性请求可以包含多种实例类型,例如 t2.microm4.mediumt3.large< /code>,或者更一般地说,例如创建具有 1GB2 的任何实例类型。

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 has 1GB<RAM<10GB and 2<CPU<16.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文