Services

Resources

Company

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)

Comic about spot instances: spot servers are spare cloud servers sold up to 90% cheaper; the cloud can take one back with a 2 minute warning; running 3 copies in 3 places, one is taken and 2 keep serving; they suit apps with many copies, not one copy or data kept only on that server, and at 90% off, 3 spot copies cost 30% of one normal server.