请求 AWS Spot 实例最佳实践?

Requesting AWS Spot Instances best practices?

对于使用 EC2 spot 实例启动 EMR 集群的最有效方法,是否有人提供任何指导?我使用的是 10 节点 r5d.8xlarge(1 主 9 核),通常我会克隆以前的实例。经常发生的事情是我会收到“容量不足”错误。当发生这种情况时,我更改子网并重试。在这一点上这真的是一个猜谜游戏,我相信有更好的方法来做到这一点,不幸的是我还没有找到一个。

没必要是猜谜游戏。可以用Instance Fleets - Amazon EMR指定多个:

  • 实例类型

For each fleet, you specify up to five EC2 instance types. Amazon EMR chooses any combination of these EC2 instance types to fulfill your target capacities.

  • 可用区

When you use instance fleets, you can specify multiple EC2 subnets within a VPC, each corresponding to a different Availability Zone. Instances are always provisioned in only one Availability Zone.

另请参阅:New – Amazon EMR Instance Fleets | AWS News Blog