request_spot_instances 和 create_instances 与 InstanceMarketOptions 有什么区别
Whats the difference between request_spot_instances and create_instances with InstanceMarketOptions
为什么 request_spot_instances
似乎可以通过指定 InstanceMarketOptions
对 create_instances
做同样的事情? (在 AWS API 中,RequestSpotInstances 与 RunInstances)
跟进:如何从 create_instances
获取 spot 请求 ID?
它们非常相似,但是RunInstances只能为单实例类型创建现货请求。例如,t2.micro
.
RequestSpotInstances is much more general and versatile. This is because you can make spot request for a fleet 个实例。这意味着您的一个 spot 请求可以包含 多个实例类型 ,例如t2.micro
、m4.medium
、t3.large
,或者更一般的,比如创建具有 1GB<RAM<10GB
和 2<CPU<16
.
的任何实例类型
为什么 request_spot_instances
似乎可以通过指定 InstanceMarketOptions
对 create_instances
做同样的事情? (在 AWS API 中,RequestSpotInstances 与 RunInstances)
跟进:如何从 create_instances
获取 spot 请求 ID?
它们非常相似,但是RunInstances只能为单实例类型创建现货请求。例如,t2.micro
.
RequestSpotInstances is much more general and versatile. This is because you can make spot request for a fleet 个实例。这意味着您的一个 spot 请求可以包含 多个实例类型 ,例如t2.micro
、m4.medium
、t3.large
,或者更一般的,比如创建具有 1GB<RAM<10GB
和 2<CPU<16
.