Services

Resources

Company

/

Spot instances

Spot instances

Spot instances are virtual machines that a cloud provider sells from its unused capacity at a large discount compared with on-demand pricing. The trade-off is that the provider can reclaim them when it needs the capacity back. AWS calls them EC2 Spot Instances, while Google Cloud and Azure call them Spot VMs.

How it works

On AWS, spot prices can be up to 90% lower than on-demand prices for the same instance type. When AWS reclaims capacity, it sends an interruption notice two minutes before stopping or terminating the instance. Your workload must drain and shut down within that window. Spreading across several instance types and Availability Zones lowers the chance that one capacity shortage hits every node at once.

Why it matters in production

Spot capacity can cut compute cost sharply for stateless and fault-tolerant workloads. It is risky for single-replica services, local data and anything that needs a guaranteed replacement quickly. In Kubernetes, a reclaim can evict pods without honouring a PodDisruptionBudget, so teams pair spot nodes with multiple replicas, an interruption handler and an on-demand fallback.

See also

On the One2N blog

References

  1. Origin of the term

  2. Amazon EC2 Spot Instances (AWS documentation)

  3. Spot Instance interruption notices (AWS documentation)

Timeline of a spot instance. At the top, a short spot price bar next to a long on-demand bar shows spot can be up to 90% lower. Below, a spot node runs, then gets a notice that opens a 2 min window, and a red X marks the node being taken back. During those 2 minutes its work drains to other replicas, spread across more instance types, more zones and an on-demand fallback, which keep serving.

Putting this into practice?

Talk to One2N about our platform engineering services

Talk to One2N about our platform engineering services