Citation and evidence

Spot instance

Report a problem with this article

Edit article
More

Use this article

Raw MarkdownExplore connections

Improve this page

Revision historyDiscuss this article

Topics

AI ComputeAI Infrastructure

Cite this article

Spot instance is the common name for 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 (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 calls the arrangement Spot VMs (earlier, preemptible VMs), Microsoft Azure sells Azure Spot Virtual Machines, and 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 the documented uses include training runs that save a checkpoint and resume, and batch 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]

DateProviderChange
2009-12-14AWSSpot Instances announced for Amazon EC2, with bidding.[6]
2015-01-05AWSTwo-minute termination notice added.[9]
2015-05-18Google CloudPreemptible VMs enter beta with a fixed price, a 24-hour maximum runtime and a 30-second warning.[10]
2017-05-11Microsoft AzureLow-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-28AWSBidding no longer required; prices change gradually.[7]
2018-01-04Google CloudNVIDIA K80 and P100 GPUs can be attached to preemptible VMs (beta).[12]
2020-05-12Microsoft AzureAzure Spot Virtual Machines become generally available, with prices that vary with capacity.[13]
2021-10-13Google CloudSpot VMs enter preview, without the 24-hour limit; a blog announcement followed on October 28.[14][15]
2022-04-29Google CloudSpot VMs become generally available; a blog announcement followed on May 20.[15][16]
2026-03-10CoreWeaveSpot tier announced as generally available.[17]
2026-03-31Microsoft AzureLow-priority VMs retired for Azure Machine Learning; existing clusters are allocated as Spot VMs.[18]
2026-11Microsoft AzureSpot Plus, a higher-priced tier with longer eviction notice, enters public preview.[19]

Expanded article table

How interruption works

ProviderProduct nameDocumented noticeOutcome
Amazon Web ServicesSpot InstancesTwo minutes; no advance warning if the instance is set to hibernate.[20]Terminated, stopped or hibernated, as chosen in the request.[21]
Google CloudSpot VMsA 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 AzureAzure Spot Virtual Machines30 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 InfrastructurePreemptible instancesAn event is emitted two minutes before termination begins.[22]Terminated.[22]
NebiusPreemptible VMsA SIGTERM signal 60 seconds before the stop.[4]Stopped; data on attached volumes is kept.[4]
CoreWeaveSpot Node PoolsA 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]
HyperstackSpot VMsNone: VMs "can be deleted at any time without prior notice".[24]Deleted; data stored on the VM is lost.[24]

Expanded article table

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, 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, 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 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 GPUs do, and the one-, two- and four-GPU 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, 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, 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 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 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, 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, a central concern of 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. AWS documents its options as follows.

ModelTermsCapacity
On-Demand InstancesPaid by the second for the instances launched.[41]Not reserved. A launch can fail with an insufficient capacity error.[1]
Savings Plans and Reserved InstancesA 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 MLGPU 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 InstancesUnused capacity billed at the Spot price; not covered by Savings Plans.[1]Reclaimable with two minutes of notice.[27]

Expanded article table

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]

Continue reading

More to read

Topics:AI ComputeAI Infrastructure

References

  1. ^1 ^2 ^3 ^4Amazon Web Services, "Spot Instances," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...using-spot-instances
  2. ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9Google Cloud Documentation, "Spot VMs," last updated December 3, 2026. docs.cloud.google.com/...spot
  3. ^1 ^2 ^3 ^4 ^5Microsoft Learn, "About Azure Spot Virtual Machines," last updated November 6, 2026. learn.microsoft.com/...spot-vms
  4. ^1 ^2 ^3 ^4Nebius AI Cloud Documentation, "Preemptible virtual machines" (retrieved December 6, 2026). docs.nebius.com/...preemptible
  5. ^1 ^2AWS News Blog, "Amazon EC2 Spot Instances - And Now How Much Would You Pay?," December 13, 2009. aws.amazon.com/...s-and-now-how-much-would-you-pay
  6. ^1 ^2Amazon, "Amazon Web Services Announces Spot Instances for Amazon EC2," December 14, 2009. press.aboutamazon.com/...-instances-for-amazon-ec2
  7. ^1 ^2AWS News Blog, "Amazon EC2 Update - Streamlined Access to Spot Capacity, Smooth Price Changes, Instance Hibernation," November 28, 2017. aws.amazon.com/...ice-changes-instance-hibernation
  8. ^AWS Compute Blog, "New Amazon EC2 Spot pricing model: Simplified purchasing without bidding and fewer interruptions," March 13, 2018. aws.amazon.com/...new-amazon-ec2-spot-pricing
  9. ^Amazon Web Services, "Announcing Amazon EC2 Spot Instance Termination Notices," January 5, 2015. aws.amazon.com/...pot-instance-termination-notices
  10. ^Google Cloud Blog, "Introducing Preemptible VMs, a new class of compute available at 70% off standard pricing," May 18, 2015. cloud.google.com/...ble-at-70-off-standard-pricing
  11. ^Microsoft Azure Blog, "Batch computing at a fraction of the price," May 11, 2017. azure.microsoft.com/...zure-batch-low-priority-vms
  12. ^Google Cloud Blog, "Introducing Preemptible GPUs: 50% Off," January 4, 2018. cloud.google.com/...ducing-preemptible-gpus-50-off
  13. ^Microsoft Azure Blog, "Announcing the general availability of Azure Spot Virtual Machines," May 12, 2020. azure.microsoft.com/...azure-spot-virtual-machines
  14. ^1 ^2Google Cloud Blog, "Run your fault-tolerant workloads cost-effectively with Google Cloud Spot VMs," October 28, 2021. cloud.google.com/...google-cloud-spot-vm
  15. ^1 ^2Google Cloud Documentation, "Archived release notes," Compute Engine, entries dated October 13, 2021 and April 29, 2022 (retrieved December 6, 2026). docs.cloud.google.com/...release-notes-archive
  16. ^Google Cloud Blog, "Run your fault-tolerant workloads cost-effectively with Google Cloud Spot VMs, now GA," May 20, 2022. cloud.google.com/...google-cloud-spot-vms-now-ga
  17. ^1 ^2CoreWeave, "CoreWeave Introduces Flexible Capacity Plans to Accelerate AI Innovation," March 10, 2026. coreweave.com/...plans-to-accelerate-ai-innovation
  18. ^1 ^2 ^3Microsoft Learn, "Use low priority VMs in batch deployments," Azure Machine Learning, last updated July 30, 2026. learn.microsoft.com/...how-to-use-low-priority-batch
  19. ^1 ^2 ^3Microsoft Learn, "Azure Spot Plus VMs: Public Preview Overview," updated November 17, 2026. learn.microsoft.com/...iew-azure-compute-technical
  20. ^1 ^2Amazon Web Services, "Spot Instance interruption notices," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...nstance-termination-notices
  21. ^1 ^2 ^3Amazon Web Services, "Spot Instance interruptions," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...spot-interruptions
  22. ^1 ^2 ^3Oracle Cloud Infrastructure Documentation, "Preemptible Instances" (retrieved December 6, 2026). docs.oracle.com/...preemptible
  23. ^1 ^2 ^3CoreWeave Documentation, "Spot Node Pools" (retrieved December 6, 2026). docs.coreweave.com/...spot-node-pools
  24. ^1 ^2 ^3Hyperstack Documentation, "Spot VMs" (retrieved December 6, 2026). docs.hyperstack.cloud/...spot
  25. ^Amazon Web Services, "EC2 instance rebalance recommendations," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...rebalance-recommendations
  26. ^Google Cloud Documentation, "Preemptible VM instances" (retrieved December 6, 2026). docs.cloud.google.com/...preemptible
  27. ^1 ^2 ^3Amazon Web Services, "Best practices for Amazon EC2 Spot," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...spot-best-practices
  28. ^Amazon Web Services, "Billing for interrupted Spot Instances," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...-interrupted-spot-instances
  29. ^1 ^2Orna 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. dants.github.io/...spotj-teac-2013.pdf
  30. ^1 ^2 ^3Zhanghao 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. usenix.org/...nsdi24-wu-zhanghao.pdf
  31. ^Amazon Web Services, "Spot Instance quotas," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...using-spot-limits
  32. ^Amazon Web Services, "Specifications for Amazon EC2 accelerated computing instances," Amazon EC2 Instance Types Guide (retrieved December 6, 2026). docs.aws.amazon.com/...ac
  33. ^1 ^2Google Cloud Documentation, "GPU machines in accelerator-optimized machine family," last updated December 3, 2026. docs.cloud.google.com/...erator-optimized-machines
  34. ^Lambda, "Cutting the cost of deep learning - Lambda Cloud 8-GPU V100 instances," May 13, 2020 (updated August 12, 2022). lambda.com/...st-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). docs.aws.amazon.com/...model-managed-spot-training
  36. ^Google Cloud Documentation, "Use Spot VMs with training," Gemini Enterprise Agent Platform, last updated December 5, 2026. docs.cloud.google.com/...use-spot-vms
  37. ^Google Cloud Documentation, "Spot VMs," Google Kubernetes Engine (GKE) (retrieved December 6, 2026). docs.cloud.google.com/...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. usenix.org/...yang-zongheng
  39. ^SkyPilot Documentation, "Managed Jobs" (retrieved December 6, 2026). docs.skypilot.ai/...managed-jobs
  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. arxiv.org/...2411.01438
  41. ^1 ^2 ^3Amazon Web Services, "Amazon EC2 billing and purchasing options," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...instance-purchasing-options
  42. ^1 ^2Amazon Web Services, "Capacity Blocks for ML," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...ec2-capacity-blocks
  43. ^Amazon Web Services, "Capacity Blocks pricing and billing," Amazon EC2 User Guide (retrieved December 6, 2026). docs.aws.amazon.com/...city-blocks-pricing-billing
  44. ^Microsoft Learn, "Run Batch workloads on cost-effective Spot VMs," Azure Batch, updated September 18, 2026. learn.microsoft.com/...batch-spot-vms

Improve this article

Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.

1 revision · v1 · 2,838 words · full history

Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify

Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here

Cite this page: AI Wiki. "Spot instance." aiwiki.ai, updated 6 Dec 2026. CC BY 4.0. https://aiwiki.ai/wiki/spot_instance

Edit article