Cloud providers frequently find themselves with massive amounts of idle hardware. To monetize this spare capacity, they offer it at steep discounts—often up to 90% off standard rates—under names like "spot" or "preemptible" instances.
The catch is a severe one: if an on-demand user arrives and claims that hardware, the spot user is evicted, often with only a two-minute warning. As De Pellegrini et al. observe, the unpredictable arrival patterns of these high-paying users make spot instance availability inherently short and unstable.
This volatility creates a fundamental architectural conflict. Modern computational workloads—such as large language model (LLM) serving, deep neural network (DNN) training, and real-time robotics—require continuous, stateful execution. Running these workloads on volatile infrastructure risks lost progress, broken state, and unacceptable tail latencies.
To bridge this gap, a rich body of research has emerged around making software systems natively resilient to sudden resource reclamation.
Quantifying the Black Box of Preemption
To survive evictions, a system must first understand them. Historically, cloud providers treated spot availability as a "black box," leaving users to guess when and where evictions would strike.
To make these events visible, Kim et al. conducted a multi-vendor empirical study of spot instance reliability. They discovered that stability varies drastically by cloud ecosystem; for instance, Microsoft Azure demonstrated significantly higher survival rates and longer median running times than AWS or GCP. By training machine learning models to predict AWS's internal "Spot Placement Score," the authors showed that workloads could proactively migrate to more stable zones, extending instance running times by up to 168%.
Risk Diversification via Server Portfolios
If a single spot instance is a gamble, a collection of spot instances can be managed like a financial portfolio. This insight, pioneered by Sharma et al. in their ExoSphere system, applies financial portfolio theory to cloud infrastructure.
The core idea is simple: preemption events are often uncorrelated across different instance types, zones, and cloud providers. By diversifying a workload across a heterogeneous mix of transient servers, the system minimizes the risk of a catastrophic, simultaneous eviction.
[User Request]
│
▼
┌─────────────────────────────────────────┐
│ Hedging Layer │
│ (e.g., SkyServe / FogROS2-FT) │
└────┬───────────────┬───────────────┬────┘
│ │ │
▼ ▼ ▼
┌───────────┐ ┌───────────┐ ┌───────────┐
│ AWS Spot │ │ GCP Spot │ │ Azure Spot│
│ (Region A)│ │ (Region B)│ │ (Region C)│
└───────────┘ └───────────┘ └───────────┘
This portfolio strategy has become foundational for modern, distributed AI and robotic systems:
- Cross-Cloud Hedging: Mao et al. developed SkyServe, a system that hosts AI models by hedging across multiple geographic regions and cloud providers simultaneously. If one region loses its spare capacity, traffic is dynamically rerouted to surviving replicas, backed by a seamless fallback to stable on-demand resources.
- Redundant Racing: For applications with strict real-time constraints, like cloud-offloaded robotics, waiting for a fallback instance introduces unacceptable delay. Chen et al. introduced FogROS2-FT, which runs redundant robotic service replicas across different spot providers. By "racing" these replicas and accepting the fastest response, the system slashes tail latency while remaining completely immune to the sudden termination of any single instance.
Proactive Scheduling and 'Liveput' Optimization
Traditional fault tolerance relies on reactive checkpointing: periodically saving the application state to persistent storage so it can be restored after a crash (Thai et al.). However, for massive workloads like deep learning, writing gigabytes of model weights to disk introduces massive overhead.
To solve this, Duan et al. introduced Parcae, a system that shifts the paradigm from reactive recovery to proactive adaptation. They formulated a new optimization metric called liveput, which balances raw training throughput with robustness to failure.
Instead of training blindly until an eviction occurs, Parcae continuously monitors resource availability signals. If the risk of preemption rises, the system proactively adjusts its parallelization strategy or schedules a lightweight, incremental checkpoint, maximizing the expected amount of useful work completed per dollar spent.
Similarly, Wu et al. demonstrated that systems can use online learning to dynamically balance a hybrid mix of local servers, cheap spot instances, and expensive on-demand instances. By learning the optimal resource allocation on the fly, their framework guarantees that deadline-driven workloads finish on time without requiring explicit, hard-to-predict future cloud pricing data.
Fine-Grained Recovery and Graceful Degradation
When an eviction notice does arrive, shutting down the entire application is not the only option. Modern frameworks use fine-grained state recovery and graceful degradation to preserve continuity.
Token-Level State Recovery
In generative LLM serving, text is generated sequentially, token by token. If a GPU instance is preempted mid-generation, restarting the entire request from scratch wastes significant computation.
To address this, Miao et al. developed SpotServe. When a spot instance hosting an LLM is reclaimed, SpotServe performs token-level state recovery. It migrates the intermediate Key-Value (KV) caches—the memory of the tokens generated so far—to a surviving instance. Combined with dynamic model reparallelization, which reshapes the remaining GPU cluster to fit the model, the system recovers from evictions with minimal disruption to user-perceived latency.
VM Deflation
For interactive web applications, an abrupt termination drops active user connections, causing immediate errors. Fuerst et al. proposed an alternative mechanism called VM deflation.
Instead of reclaiming an entire virtual machine outright, the cloud provider's hypervisor gradually shrinks the instance's available memory and CPU allocation. This gives the interactive application time to gracefully degrade: it can shed non-essential background tasks, drain active request queues, and redirect new traffic to other nodes, transforming a catastrophic crash into a controlled slowdown.
| Mitigation Strategy | Core Mechanism | Primary Benefit | Target Workload |
|---|---|---|---|
| Server Portfolios (Sharma et al.) | Diversification across uncorrelated zones/vendors | Eliminates single points of failure | General distributed tasks |
| Liveput Optimization (Duan et al.) | Proactive checkpointing based on availability signals | Minimizes wasted computation overhead | Large-scale DNN training |
| Token-Level Recovery (Miao et al.) | KV cache migration and dynamic reparallelization | Lowers tail latency during evictions | Generative LLM serving |
| VM Deflation (Fuerst et al.) | Gradual resource reduction instead of termination | Maintains continuous availability | Interactive web services |
By shifting the responsibility of fault tolerance from the cloud provider to intelligent software layers, these techniques turn highly volatile, cheap hardware into a reliable foundation for state-of-the-art computing.
Key Foundational Work
Ensuring Collective Availability in Volatile Resource Pools Via Forecasting (2008) — contributed 3 concept elements to this direction.
Grid workflow scheduling based on reliability cost (2007) — contributed 1 concept elements to this direction.