Amazon EC2 Spot Instances explained: spare capacity and interruptions
AWS defines a Spot Instance as an EC2 instance that uses spare capacity, with a Spot price that Amazon EC2 sets and adjusts gradually.
AWS's Spot Instances page defines a Spot Instance as an instance that uses spare EC2 capacity that is available for less than the On-Demand price. The hourly price for a Spot Instance is called a Spot price, and the instance runs whenever capacity is available. When Amazon EC2 needs the capacity back, it terminates, stops, or hibernates the Spot Instance.
What a Spot price and capacity pool mean
Amazon EC2 sets the Spot price for each instance type in each Availability Zone. The page says that price is adjusted gradually based on the long-term supply of and demand for Spot Instances.
A Spot capacity pool is a set of unused EC2 instances with the same instance type (for example, m5.large) and Availability Zone. A Spot Instance request asks for a Spot Instance. Amazon EC2 fulfills the request when capacity is available.
A Spot Instance request is either one-time or persistent. Amazon EC2 automatically resubmits a persistent Spot Instance request after the Spot Instance associated with the request is interrupted.
When AWS says Spot Instances fit
AWS says Spot Instances are a cost-effective choice if you can be flexible about when your applications run and if your applications can be interrupted. The workloads AWS names as well suited are data analysis, batch jobs, background processing, and optional tasks.
Interruption, rebalance signals and notice
Amazon EC2 provides a Spot Instance interruption notice, which gives the instance a two-minute warning before it is interrupted. Amazon EC2 also emits an instance rebalance recommendation signal to notify you that a Spot Instance is at an elevated risk of interruption. The page says this signal provides an opportunity to proactively rebalance your workloads across existing or new Spot Instances without having to wait for the two-minute Spot Instance interruption notice.
Amazon EC2 can interrupt an individual Spot Instance if capacity is no longer available. You can stop and start an Amazon EBS-backed Spot Instance. The page says your Spot Instances run until you terminate them, capacity is no longer available, or your Amazon EC2 Auto Scaling group terminates them during scale in.
Spot compared with On-Demand
| Spot Instances | On-Demand Instances | |
|---|---|---|
| Launch time | Can only be launched immediately if the Spot Instance request is active and capacity is available. | Can only be launched immediately if you make a manual launch request and capacity is available. |
| Available capacity | If capacity is not available, the Spot Instance request continues to automatically make the launch request until capacity becomes available. | If capacity is not available when you make a launch request, you get an insufficient capacity error (ICE). |
| Hourly price | The hourly price for Spot Instances varies based on long-term supply and demand. | The hourly price for On-Demand Instances is static. |
| Rebalance recommendation | The signal that Amazon EC2 emits for a running Spot Instance when the instance is at an elevated risk of interruption. | You determine when an On-Demand Instance is interrupted (stopped, hibernated, or terminated). |
| Instance interruption | You can stop and start an Amazon EBS-backed Spot Instance. In addition, Amazon EC2 can interrupt an individual Spot Instance if capacity is no longer available. | You determine when an On-Demand Instance is interrupted (stopped, hibernated, or terminated). |
Frequently asked questions
Does a Spot Instance run all the time?
AWS's page says your Spot Instance runs whenever capacity is available. If capacity is not available, a Spot Instance request continues to automatically make the launch request until capacity becomes available.
What is a Spot Instance request?
AWS defines it as a request for a Spot Instance. When capacity is available, Amazon EC2 fulfills the request. A request is either one-time or persistent, and Amazon EC2 automatically resubmits a persistent request after the associated Spot Instance is interrupted.
Which workloads does AWS say suit Spot Instances?
AWS says Spot Instances are a cost-effective choice when you can be flexible about when applications run and when applications can be interrupted. It names data analysis, batch jobs, background processing, and optional tasks as well suited.
How much warning does the interruption notice give?
A Spot Instance interruption notice gives the instance a two-minute warning before it is interrupted, according to AWS's page.
Sources
- Spot Instances (Amazon EC2 User Guide) — Amazon Web Services
Checked 30 November 2026