Spot Instances are spare EC2 capacity that AWS sells at a large discount. The trade-off is simple: when AWS needs the capacity back, your instance is interrupted with a two-minute warning. Teams that design for that can cut compute bills dramatically; teams that do not tend to learn the hard way.
This guide explains how Spot pricing and interruptions work, which workloads belong on Spot, and how to build fleets that keep running when individual instances disappear.
How Spot works
A Spot Instance is a normal EC2 instance launched into unused capacity. It runs the same AMIs, instance types and networking as On-Demand. The difference is that AWS can reclaim it when it needs the capacity for On-Demand or reserved customers. The EC2 Spot documentation covers the request types and options.
Each combination of instance type and Availability Zone is a separate Spot capacity pool. The more pools your workload can use, the less likely a shortage in one pool affects you.

Pricing and savings
AWS sets Spot prices per pool and adjusts them gradually based on long-term supply and demand. You pay the price in effect while the instance runs, billed per second for Linux. AWS advertises savings of up to 90% compared with On-Demand. You can set a maximum price, but the default is the On-Demand price, and lowering it mainly increases interruptions.
The Spot Instance Advisor shows typical savings and the historical interruption frequency for each instance type, which helps pick pools that are both cheap and stable.
Interruptions and notices
When AWS reclaims capacity, the instance receives a Spot interruption notice two minutes before it is stopped, hibernated or terminated. The notice is available through instance metadata and as an EventBridge event. AWS may also send an EC2 rebalance recommendation earlier, signalling elevated risk so you can move work proactively.
Your application should watch for these signals, stop accepting new work, finish or checkpoint current work, and deregister from the load balancer. Auto Scaling groups can do much of this for you with Capacity Rebalancing.
Good and bad Spot workloads
Good fits
- Batch processing, data pipelines and big data jobs that can retry.
- CI/CD build agents and test runners.
- Rendering, transcoding and scientific computing with checkpoints.
- Stateless web and API tiers behind a load balancer, mixed with On-Demand.
- Development and test environments.
Poor fits
- Single-instance production servers with no failover.
- Databases and other stateful systems that keep data on the instance.
- Long jobs that cannot checkpoint and must finish in one run.
- Workloads that need one specific instance type in one AZ.
Spot vs other pricing models
| Model | Discount | Commitment | Interruption risk |
|---|---|---|---|
| On-Demand | None | None | None |
| Savings Plans | Significant | 1 or 3 years of spend | None |
| Reserved Instances | Significant | 1 or 3 years | None |
| Spot | Up to 90% | None | Yes, two-minute notice |
A common pattern is Savings Plans for the steady baseline, Spot for elastic capacity, and On-Demand for anything in between. The EC2 pricing models guide compares them in more detail.
Designing for interruption
- Keep instances stateless. Store data in S3, EFS, a database or a queue, not on the local disk.
- Diversify. Allow at least ten instance types of similar size across several families and every AZ you use. Attribute-based instance selection makes this easier.
- Use price-capacity-optimized allocation. It picks pools with the most spare capacity at a low price, reducing interruptions.
- Checkpoint long work so a replacement instance can resume rather than restart.
- Handle the notice with a small script or the Auto Scaling lifecycle hooks.
- Retry failed jobs automatically through your queue or scheduler.
Spot in Auto Scaling groups
An Auto Scaling group with a mixed instances policy can run a fixed On-Demand base, a percentage of On-Demand above that, and the rest on Spot. Turn on Capacity Rebalancing so the group launches replacements when a rebalance recommendation arrives. Put the group behind a load balancer with connection draining. The Auto Scaling and load balancer guide walks through the setup.
Spot quotas on new accounts
Spot capacity has its own vCPU quotas, separate from On-Demand, and they are set per Region. Fresh accounts often start low, which stops large fleets before they launch. Check Service Quotas for the Spot Instance requests quotas and ask for increases ahead of time; the vCPU quotas guide explains the process. If you need Spot capacity soon after purchase, compare the quota details listed with each AWS account for sale before choosing.
Spot readiness checklist
- Workload is stateless or checkpoints its progress.
- Ten or more instance types allowed, across all AZs in use.
- Allocation strategy set to price-capacity-optimized.
- Interruption notice handled; Capacity Rebalancing on.
- On-Demand base capacity defined for critical traffic.
- Spot vCPU quotas checked in the Region.
Spot Instance questions
How much cheaper are Spot Instances?
AWS advertises discounts of up to 90% compared with On-Demand prices. The actual discount varies by instance type, Region and Availability Zone, and changes gradually over time.
How much warning do I get before a Spot interruption?
AWS issues a Spot interruption notice two minutes before it stops, hibernates or terminates the instance. It can also send an earlier rebalance recommendation when the risk of interruption rises.
Do I need to bid for Spot Instances?
No. You pay the current Spot price. You can set a maximum price, but AWS recommends leaving it at the default, which is the On-Demand price.
Can I run a database on Spot?
It is generally a poor fit. Databases need stable storage and uptime, and an interruption can cause failover or data loss. Keep databases on On-Demand or covered by Savings Plans.
Are Spot vCPU limits the same as On-Demand limits?
No. Spot has its own vCPU quotas in Service Quotas, separate from On-Demand. New accounts often have low Spot limits that need an increase before running large fleets.
Editorial guide by Mark Biden · Reviewed 24 November 2026. Official sources are linked beside the relevant sections; AWS features, quotas and prices change, so confirm details in the AWS console before relying on them.

Leave a Reply