# Spot instance

> Source: https://aiwiki.ai/wiki/spot_instance
> Updated: 2026-12-06
> Categories: AI Compute, AI Infrastructure
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) - attribute to "AI Wiki (aiwiki.ai)"
> Cite as: AI Wiki. "Spot instance." aiwiki.ai, 6 Dec 2026. https://aiwiki.ai/wiki/spot_instance
> From AI Wiki (https://aiwiki.ai), the free encyclopedia of artificial intelligence. Reuse freely with attribution.

**Spot instance** is the common name for [cloud computing](https://aiwiki.ai/wiki/cloud_computing) capacity that a provider sells from its unused stock at a discount, on the condition that it can take the capacity back at short notice. [Amazon Web Services](https://aiwiki.ai/wiki/amazon_web_services) (AWS) defines a Spot Instance as "an instance that uses spare EC2 capacity that is available for less than the On-Demand price".[1] [Google Cloud](https://aiwiki.ai/wiki/google_cloud) calls the arrangement Spot VMs (earlier, preemptible VMs), [Microsoft Azure](https://aiwiki.ai/wiki/azure) sells Azure Spot Virtual Machines, and [Nebius](https://aiwiki.ai/wiki/nebius) describes its preemptible VMs as "also known as spot VMs or spot instances".[2][3][4]

Providers recommend the model for work that tolerates interruption. In [machine learning](https://aiwiki.ai/wiki/machine_learning) the documented uses include [training](https://aiwiki.ai/wiki/model_training) runs that save a [checkpoint](https://aiwiki.ai/wiki/checkpoint) and resume, and batch [inference](https://aiwiki.ai/wiki/inference). The model carries no availability guarantee: Google excludes Spot VMs from the Compute Engine service level agreement, and Azure states that "there's no SLA for these VMs".[2][3]

## History

AWS announced Spot Instances for Amazon EC2 in December 2009. Customers bid a maximum hourly price. EC2 computed a Spot Price for each instance type from the open bids and the unused capacity, launched requests bidding at or above it, terminated instances whose bids fell below it, and billed running instances at the Spot Price instead of the bid.[5][6] Jeff Barr's launch post advised users to "regularly checkpoint work in progress".[5]

In November 2017 AWS dropped the bidding requirement and said prices would "adjust more gradually, based on longer-term trends in supply and demand".[7] An AWS post in March 2018 explained that under the old model the Spot price "was set to the highest unfulfilled bid", which made prices fluctuate, and that instances would no longer be interrupted because of competing bids.[8]

| Date | Provider | Change |
| --- | --- | --- |
| 2009-12-14 | AWS | Spot Instances announced for Amazon EC2, with bidding.[6] |
| 2015-01-05 | AWS | Two-minute termination notice added.[9] |
| 2015-05-18 | Google Cloud | Preemptible VMs enter beta with a fixed price, a 24-hour maximum runtime and a 30-second warning.[10] |
| 2017-05-11 | Microsoft Azure | Low-priority VMs in Azure Batch enter public preview at a fixed price per VM size, described as "available for up to an 80% discount".[11] |
| 2017-11-28 | AWS | Bidding no longer required; prices change gradually.[7] |
| 2018-01-04 | Google Cloud | [NVIDIA](https://aiwiki.ai/wiki/nvidia) K80 and P100 GPUs can be attached to preemptible VMs (beta).[12] |
| 2020-05-12 | Microsoft Azure | Azure Spot Virtual Machines become generally available, with prices that vary with capacity.[13] |
| 2021-10-13 | Google Cloud | Spot VMs enter preview, without the 24-hour limit; a blog announcement followed on October 28.[14][15] |
| 2022-04-29 | Google Cloud | Spot VMs become generally available; a blog announcement followed on May 20.[15][16] |
| 2026-03-10 | [CoreWeave](https://aiwiki.ai/wiki/coreweave) | Spot tier announced as generally available.[17] |
| 2026-03-31 | Microsoft Azure | Low-priority VMs retired for [Azure Machine Learning](https://aiwiki.ai/wiki/azure_ml); existing clusters are allocated as Spot VMs.[18] |
| 2026-11 | Microsoft Azure | Spot Plus, a higher-priced tier with longer eviction notice, enters public preview.[19] |

## How interruption works

| Provider | Product name | Documented notice | Outcome |
| --- | --- | --- | --- |
| [Amazon Web Services](https://aiwiki.ai/wiki/amazon_web_services) | Spot Instances | Two minutes; no advance warning if the instance is set to hibernate.[20] | Terminated, stopped or hibernated, as chosen in the request.[21] |
| [Google Cloud](https://aiwiki.ai/wiki/google_cloud) | Spot VMs | A shutdown period that is "best effort and up to 30 seconds"; a 120-second preemption notice can be set when the VM is created.[2] | Stopped (default) or deleted.[2] |
| [Microsoft Azure](https://aiwiki.ai/wiki/azure) | Azure Spot Virtual Machines | 30 seconds; in-VM notifications are delivered on a best-effort basis up to 30 seconds before eviction.[3] | Deallocated (default) or deleted.[3] |
| [Oracle Cloud Infrastructure](https://aiwiki.ai/wiki/oracle_cloud_infrastructure) | Preemptible instances | An event is emitted two minutes before termination begins.[22] | Terminated.[22] |
| [Nebius](https://aiwiki.ai/wiki/nebius) | Preemptible VMs | A SIGTERM signal 60 seconds before the stop.[4] | Stopped; data on attached volumes is kept.[4] |
| [CoreWeave](https://aiwiki.ai/wiki/coreweave) | Spot Node Pools | A window of up to seven minutes: the node is cordoned at the warning and drained two minutes later.[23] | Node removed from the cluster.[23] |
| Hyperstack | Spot VMs | None: VMs "can be deleted at any time without prior notice".[24] | Deleted; data stored on the VM is lost.[24] |

AWS lists three reasons for an interruption: EC2 needs the capacity back, the Spot price has risen above a maximum price the user set, or a constraint in the request can no longer be met.[21] Its notices are "emitted on a best effort basis".[20] For instances launched after November 5, 2020, EC2 also sends a rebalance recommendation, a signal of elevated interruption risk that "can arrive sooner than" the two-minute notice but sometimes arrives with it.[25]

On Google Cloud, the older preemptible VMs are still stopped after 24 hours, while Spot VMs "don't have a minimum or maximum runtime".[26][2] Azure's Spot Plus preview offers 30 seconds to 2 minutes of eviction notice and does not charge for a VM that Azure reclaims within its first 60 minutes.[19]

## Pricing

AWS says the Spot price for each instance type in each Availability Zone "is set by Amazon EC2, and is adjusted gradually based on the long-term supply of and demand for Spot Instances".[1] A user may still set a maximum price, though AWS warns that doing so leads to more frequent interruptions.[21] Its best-practices page, as retrieved in December 2026, advertises "savings of up to 90% compared to On-Demand prices".[27]

Google's documentation, as updated in December 2026, states discounts "of up to 91% off of the on-demand price for many machine types, GPUs, TPUs, and Local SSD disks" and says Spot prices "can change up to once every day".[2] At the 2021 preview Google had said the discount would be between 60% and 91% and "may change up to once a month".[14]

Azure describes Spot pricing as "variable, based on region and SKU". A user can set a maximum hourly price, or set it to -1 so that the VM is never evicted for price.[3] Microsoft's Spot Plus comparison, as updated in November 2026, lists standard Spot at "Up to 90% off pay-as-you-go".[19] Some discounts are fixed: as of December 2026, Oracle's documentation says preemptible capacity "costs 50% less than on-demand capacity in all regions", and Hyperstack's says Spot VMs come with "a fixed percentage discount compared to on-demand pricing".[22][24] Each discount is stated against the provider's own [on-demand rates](https://aiwiki.ai/wiki/cloud_gpu_pricing_comparison), so the percentages are not directly comparable across providers.

Billing rules reduce the cost of early interruptions. AWS does not charge for an instance that EC2 interrupts in its first hour, and Google does not bill for a Spot VM preempted less than a minute after creation.[28][2]

A 2013 paper by Orna Agmon Ben-Yehuda and colleagues at the Technion reverse-engineered EC2 price histories from the bidding era and suggested that prices were usually "not market-driven" and were likely generated "at random from within a tight price range via a dynamic hidden reserve price mechanism".[29] A 2024 study from the [University of California, Berkeley](https://aiwiki.ai/wiki/uc_berkeley), using three months of AWS traces, found "only a 5% price variation on average over any one-week period", while availability could "change from 100% to 0% within hours".[30]

## GPU capacity

AWS and Google apply separate limits to spot [GPU](https://aiwiki.ai/wiki/gpu) capacity. AWS counts Spot quotas in vCPUs per Region. The default is 0 for the quota classes covering its GPU-equipped P and G instance families, against 5 for standard families.[31][32] Google suggests requesting a dedicated "Preemptible GPU" quota, and by default it preempts Spot VMs with GPUs during host maintenance events.[2]

Support also varies by machine series. In Google's accelerator-optimized family, the A5X, A4X Max and A4X series do not support Spot VMs, while A4 machines with [NVIDIA B200](https://aiwiki.ai/wiki/nvidia_b200) GPUs do, and the one-, two- and four-GPU [H100](https://aiwiki.ai/wiki/nvidia_h100) types in the A3 High series can only be created as Spot or Flex-start VMs.[33] The Berkeley study chose V100 and K80 GPU instances because they were "frequently preempted", saw unavailable periods lasting "hours or even days", and found that in clusters of 4 and 16 instances either all or none were available more than 94% of the time.[30]

Among [neoclouds](https://aiwiki.ai/wiki/neocloud), Nebius allows preemptible VMs "on all VM platforms with GPUs".[4] CoreWeave offers Spot Node Pools for all instance types except "Superchip-powered instances (for example, GH200, GB200, GB300)".[23] [Lambda](https://aiwiki.ai/wiki/lambda_labs), in a blog post published in May 2020 and updated in August 2022, said of spot instances: "This is not how we provide discounts."[34]

## Use in machine learning

Managed training services wrap the checkpoint-and-resume pattern. [Amazon SageMaker](https://aiwiki.ai/wiki/amazon_sagemaker) managed spot training, which AWS's documentation, as of December 2026, says "can optimize the cost of training models up to 90% over on-demand instances", copies checkpoints to Amazon S3 and resumes from the last one after an interruption. It does not fall back to on-demand capacity: if no Spot capacity appears before a configured maximum wait, the job stops. SageMaker's [hyperparameter tuning](https://aiwiki.ai/wiki/hyperparameter_tuning) can use the same mechanism.[35] Google's documentation for serverless training on its Gemini Enterprise Agent Platform, as updated in December 2026, says a preempted job fails and Compute Engine tries to restart it up to six times, and it recommends checkpoints.[36]

On [Kubernetes](https://aiwiki.ai/wiki/kubernetes), Google Kubernetes Engine labels Spot nodes and gives Pods a 30-second graceful termination period by default, extendable to 120 seconds.[37]

SkyPilot, which its Berkeley authors describe as an intercloud broker, relaunches managed jobs after a preemption and can fall back to on-demand instances; a job restarts from scratch unless it saves progress to persistent storage.[38][39] The 2024 Berkeley study built a scheduling policy on SkyPilot that switches between spot and on-demand instances to meet a deadline and reported 27% to 84% cost savings on its test workloads.[30]

For batch inference, Azure Machine Learning batch deployments reschedule work at the mini-batch level when a node is preempted and provide no checkpointing.[18] Online [serving](https://aiwiki.ai/wiki/serving), a central concern of [inference economics](https://aiwiki.ai/wiki/inference_economics), has been a harder fit. The authors of SkyServe wrote that preemptions "have discouraged users" from hosting model replicas on spot instances; their system spreads spot replicas across regions and clouds with on-demand fallback, and cut cost by 43% on average against on-demand serving in their experiments.[40]

## Comparison with other purchasing models

Spot is one of several purchasing models at the [hyperscalers](https://aiwiki.ai/wiki/hyperscaler). AWS documents its options as follows.

| Model | Terms | Capacity |
| --- | --- | --- |
| On-Demand Instances | Paid by the second for the instances launched.[41] | Not reserved. A launch can fail with an insufficient capacity error.[1] |
| Savings Plans and Reserved Instances | A commitment for 1 or 3 years, to an hourly spend or to an instance configuration.[41] | Reserved Instances for a specific Availability Zone can reserve capacity.[41] |
| Capacity Blocks for ML | GPU instances booked for a future date, starting up to eight weeks ahead, with up to 64 instances in a block. Charged up front and not cancellable.[42][43] | Reserved for the block's duration.[42] |
| Spot Instances | Unused capacity billed at the Spot price; not covered by Savings Plans.[1] | Reclaimable with two minutes of notice.[27] |

As of December 2026, Google's documentation says Flex-start instances receive discounts "of up to 53%", and CoreWeave's Flex Reservations, in preview in March 2026, secure "a capacity ceiling with a lower 24/7 holding fee".[33][17]

## Limits and criticism

AWS states that Spot "does not guarantee that you can keep your running instances long enough to finish your workloads", nor that requested capacity will be available. It discourages failing over to On-Demand Instances during a shortage because doing so "can inadvertently drive interruptions for your other Spot Instances".[27]

Microsoft's Azure Machine Learning documentation says nodes evicted before completing any work are still billed, and that frequent evictions "can make a cluster cost more than a dedicated cluster for the same workload".[18] Its Azure Batch guidance adds that long-running multi-node MPI jobs fit poorly, because one preempted VM can force the whole job to run again.[44]

The Technion authors noted that Amazon "publicizes the spot price but does not disclose how it is determined", and Google's documentation says users "can't view why any given preemption event occurred".[29][2]

## References

1. Amazon Web Services, "Spot Instances," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html
2. Google Cloud Documentation, "Spot VMs," last updated December 3, 2026. https://docs.cloud.google.com/compute/docs/instances/spot
3. Microsoft Learn, "About Azure Spot Virtual Machines," last updated November 6, 2026. https://learn.microsoft.com/en-us/azure/virtual-machines/spot-vms
4. Nebius AI Cloud Documentation, "Preemptible virtual machines" (retrieved December 6, 2026). https://docs.nebius.com/compute/virtual-machines/preemptible
5. AWS News Blog, "Amazon EC2 Spot Instances - And Now How Much Would You Pay?," December 13, 2009. https://aws.amazon.com/blogs/aws/ec2-spot-instances-and-now-how-much-would-you-pay/
6. Amazon, "Amazon Web Services Announces Spot Instances for Amazon EC2," December 14, 2009. https://press.aboutamazon.com/2009/12/amazon-web-services-announces-spot-instances-for-amazon-ec2
7. AWS News Blog, "Amazon EC2 Update - Streamlined Access to Spot Capacity, Smooth Price Changes, Instance Hibernation," November 28, 2017. https://aws.amazon.com/blogs/aws/amazon-ec2-update-streamlined-access-to-spot-capacity-smooth-price-changes-instance-hibernation/
8. AWS Compute Blog, "New Amazon EC2 Spot pricing model: Simplified purchasing without bidding and fewer interruptions," March 13, 2018. https://aws.amazon.com/blogs/compute/new-amazon-ec2-spot-pricing/
9. Amazon Web Services, "Announcing Amazon EC2 Spot Instance Termination Notices," January 5, 2015. https://aws.amazon.com/about-aws/whats-new/2015/01/05/announcing-amazon-ec2-spot-instance-termination-notices
10. Google Cloud Blog, "Introducing Preemptible VMs, a new class of compute available at 70% off standard pricing," May 18, 2015. https://cloud.google.com/blog/products/gcp/introducing-preemptible-vms-a-new-class-of-compute-available-at-70-off-standard-pricing
11. Microsoft Azure Blog, "Batch computing at a fraction of the price," May 11, 2017. https://azure.microsoft.com/en-us/blog/announcing-public-preview-of-azure-batch-low-priority-vms/
12. Google Cloud Blog, "Introducing Preemptible GPUs: 50% Off," January 4, 2018. https://cloud.google.com/blog/products/gcp/introducing-preemptible-gpus-50-off
13. Microsoft Azure Blog, "Announcing the general availability of Azure Spot Virtual Machines," May 12, 2020. https://azure.microsoft.com/en-us/blog/announcing-the-general-availability-of-azure-spot-virtual-machines/
14. Google Cloud Blog, "Run your fault-tolerant workloads cost-effectively with Google Cloud Spot VMs," October 28, 2021. https://cloud.google.com/blog/products/compute/google-cloud-spot-vm
15. Google Cloud Documentation, "Archived release notes," Compute Engine, entries dated October 13, 2021 and April 29, 2022 (retrieved December 6, 2026). https://docs.cloud.google.com/compute/docs/release-notes-archive
16. Google Cloud Blog, "Run your fault-tolerant workloads cost-effectively with Google Cloud Spot VMs, now GA," May 20, 2022. https://cloud.google.com/blog/products/compute/google-cloud-spot-vms-now-ga
17. CoreWeave, "CoreWeave Introduces Flexible Capacity Plans to Accelerate AI Innovation," March 10, 2026. https://coreweave.com/news/coreweave-introduces-flexible-capacity-plans-to-accelerate-ai-innovation
18. Microsoft Learn, "Use low priority VMs in batch deployments," Azure Machine Learning, last updated July 30, 2026. https://learn.microsoft.com/en-us/azure/machine-learning/how-to-use-low-priority-batch
19. Microsoft Learn, "Azure Spot Plus VMs: Public Preview Overview," updated November 17, 2026. https://learn.microsoft.com/en-us/azure/virtual-machines/spot-plus-public-preview-azure-compute-technical
20. Amazon Web Services, "Spot Instance interruption notices," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-instance-termination-notices.html
21. Amazon Web Services, "Spot Instance interruptions," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-interruptions.html
22. Oracle Cloud Infrastructure Documentation, "Preemptible Instances" (retrieved December 6, 2026). https://docs.oracle.com/en-us/iaas/Content/Compute/Concepts/preemptible.htm
23. CoreWeave Documentation, "Spot Node Pools" (retrieved December 6, 2026). https://docs.coreweave.com/platform/capacity-plans/spot-node-pools
24. Hyperstack Documentation, "Spot VMs" (retrieved December 6, 2026). https://docs.hyperstack.cloud/docs/virtual-machines/spot
25. Amazon Web Services, "EC2 instance rebalance recommendations," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/rebalance-recommendations.html
26. Google Cloud Documentation, "Preemptible VM instances" (retrieved December 6, 2026). https://docs.cloud.google.com/compute/docs/instances/preemptible
27. Amazon Web Services, "Best practices for Amazon EC2 Spot," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html
28. Amazon Web Services, "Billing for interrupted Spot Instances," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/billing-for-interrupted-spot-instances.html
29. Orna Agmon Ben-Yehuda, Muli Ben-Yehuda, Assaf Schuster and Dan Tsafrir, "Deconstructing Amazon EC2 Spot Instance Pricing," ACM Transactions on Economics and Computation, September 2013. https://dants.github.io/papers/spotj-teac-2013.pdf
30. Zhanghao Wu et al., "Can't Be Late: Optimizing Spot Instance Savings under Deadlines," 21st USENIX Symposium on Networked Systems Design and Implementation (NSDI '24), April 2024. https://www.usenix.org/system/files/nsdi24-wu-zhanghao.pdf
31. Amazon Web Services, "Spot Instance quotas," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-limits.html
32. Amazon Web Services, "Specifications for Amazon EC2 accelerated computing instances," Amazon EC2 Instance Types Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/ec2/latest/instancetypes/ac.html
33. Google Cloud Documentation, "GPU machines in accelerator-optimized machine family," last updated December 3, 2026. https://docs.cloud.google.com/compute/docs/accelerator-optimized-machines
34. Lambda, "Cutting the cost of deep learning - Lambda Cloud 8-GPU V100 instances," May 13, 2020 (updated August 12, 2022). https://lambda.com/blog/cutting-the-cost-of-high-performance-deep-learning
35. Amazon Web Services, "Managed Spot Training in Amazon SageMaker AI," Amazon SageMaker AI Developer Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/sagemaker/latest/dg/model-managed-spot-training.html
36. Google Cloud Documentation, "Use Spot VMs with training," Gemini Enterprise Agent Platform, last updated December 5, 2026. https://docs.cloud.google.com/gemini-enterprise-agent-platform/machine-learning/training/use-spot-vms
37. Google Cloud Documentation, "Spot VMs," Google Kubernetes Engine (GKE) (retrieved December 6, 2026). https://docs.cloud.google.com/kubernetes-engine/docs/concepts/spot-vms
38. Zongheng Yang et al., "SkyPilot: An Intercloud Broker for Sky Computing," 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI '23), April 2023. https://www.usenix.org/conference/nsdi23/presentation/yang-zongheng
39. SkyPilot Documentation, "Managed Jobs" (retrieved December 6, 2026). https://docs.skypilot.ai/en/latest/examples/managed-jobs.html
40. Ziming Mao et al., "SkyServe: Serving AI Models across Regions and Clouds with Spot Instances," EuroSys '25, arXiv:2411.01438, revised March 3, 2025. https://arxiv.org/abs/2411.01438
41. Amazon Web Services, "Amazon EC2 billing and purchasing options," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-purchasing-options.html
42. Amazon Web Services, "Capacity Blocks for ML," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html
43. Amazon Web Services, "Capacity Blocks pricing and billing," Amazon EC2 User Guide (retrieved December 6, 2026). https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/capacity-blocks-pricing-billing.html
44. Microsoft Learn, "Run Batch workloads on cost-effective Spot VMs," Azure Batch, updated September 18, 2026. https://learn.microsoft.com/en-us/azure/batch/batch-spot-vms

