Picking Spot Instance Types

Diversification Strategy for AWS Spot Instances to optimize costs and availability

Picking Spot Instance Types

To effectively utilize AWS Spot Instances and minimize the risk of not being able to allocate an instance, it's crucial to diversify across different server types. This strategy significantly reduces the likelihood of an Auto Scaling Group (ASG) cluster being unable to acquire a Spot Instance.

When choosing an instance, opt for various classes within the same series, but avoid selecting multiple types with similar service characteristics. For example, in the 7g series, choose between M7g, C7g, or R7g, but not all three. AWS likely balances these instance types across the same servers due to their similar features.

Here’s a breakdown for the 7 series:

  • 7g Series: Choose one among M7g, C7g, or R7g.
  • 7gn Series: Go with C7gn.
  • 7i Series: Select one from M7i, M7i-flex, C7i, or R7i.
  • 7a Series: Pick one of M7a, C7a, or R7a.

For instance, if your requirements are 2 vCPU and 8 GiB of memory, consider the following options: M7g.large, M7i.large, and M7a.large.

Note: M7i-flex is included in the 7i group as it's unclear if these would be hosted on different servers based on available information.

Implementing this strategy can lead to significant cost savings in your cloud infrastructure.

#finops #aws #spot #costsavings #cloud

Read more