Reliable State Flush on Spot Cloud VMs

Confidence-Certified Safe Operating Areas for Deadline-Bounded State Evacuation

Jiasheng Zhuang · Xinghan Chen · Velimir Dedic
Signum Magnum College · University of Washington

IEEE FiCloud 2026 | Jul 21 2026

Motivation

Spot VMs are cheap — until they vanish

💰
up to 90%
cost savings

Spot / preemptible pricing vs. on-demand

30 – 120 s
warning before shutdown

AWS 120 s  ·  GCP 30 s preemptible

Stateful workloads — notebooks, databases, dev environments — can tolerate restarts. They cannot tolerate losing hours of computation.
Can the machine durably evacuate all relevant state to object storage before shutdown?
Key Insight

Averages hide deadline failures

Throughput benchmark

"Average upload speed: 500 MB/s"

Does not tell you whether every part completed, whether one part became a straggler, or whether finalization succeeded before shutdown.

Deadline-bounded completion

"Did the entire end-to-end upload finish before time W?"

Binary outcome. An upload that completes one second after the deadline is a failure, even if the object eventually becomes available.

What matters: tail latency, contention, retries, the slowest outstanding part. For multipart storage, the finalization request must also complete — acknowledging all parts alone does nothing.
Contribution

The Safe Operating Area frontier

Smax(W, k, P) = largest tested state size certified safe for deadline W, chunk size k, parallelism P

What it gives operators

A concrete configuration-to-safety boundary. If Smax = 12 GiB, then 12 GiB is the largest tested size that passes the certification rule. It does not mean 13 GiB is necessarily unsafe — it may not have been tested.

Research questions

RQ 1 — What frontier do we observe for each provider and deadline?

RQ 2 — Which tuning knob moves the frontier more: chunk size or parallelism?

operational workflow
Contribution

How operators use the frontier

The SOA produces a measure → cache → admit workflow that can be reused across deployments.

1
Measure
Periodically benchmark provider,
region, and instance family
2
Cache
Store the resulting frontier
as an admission-control table
3
Admit
On warning: compare state size
vs. cached frontier
When a revocation warning arrives, the system checks the amount of state that must be evacuated and selects a chunk size and parallelism that remain inside the conservative boundary — or rejects transient execution if the state lies outside the frontier.
Methodology

Experimental setup & certification rule

Setup

  • Real AWS and GCP VMs, writing to same-region provider object storage
  • State sizes: 4, 8, 12, 16 GiB
  • Chunk sizes: 8, 16, 64 MiB
  • Parallelism: 10, 16, 64 threads
  • Deadlines: 30, 60, 120 seconds

25.7 M part upload attempts · 37.6 K runs · 6 regions · 5 instance families

Success = entire end-to-end completion (incl. multipart finalization) before deadline W.

Certification

Each run is a Bernoulli trial — a coin flip: did the upload finish in time, yes or no?

From those flips, compute a Wilson lower confidence bound — a pessimistic estimate of the true success rate, accounting for limited sample size.

Certified safe only when that pessimistic estimate ≥ 95%

Frontiers are computed separately per deployment segment (a region + instance family combination). We report the median frontier (the middle segment — typical capacity) and the worst-segment frontier (the unluckiest segment — how much you can safely count on everywhere).
what "certified-safe" means
Methodology

What "certified-safe" means

Deliberately conservative

We do not use the raw observed success rate. If 19 out of 20 runs succeed, the observed rate is 95% — but with only 20 samples, the true rate could be lower. The Wilson lower bound accounts for that sample uncertainty, giving us a pessimistic estimate that must still exceed 95%.

A small number of deadline misses — or insufficient evidence — can prevent certification.

Outside the SOA ≠ proven impossible

A point outside the Safe Operating Area is not necessarily proven to fail. It means we do not have sufficiently strong evidence to recommend it as safe.

The rule is deliberately harsh: limited evidence or a small number of misses can prevent a cell from being called safe.

Finalization matters. For multipart storage, acknowledging all payload parts is not sufficient — the final completion request must also finish before the deadline so the object exists as a normal readable object. Our primary results use end-to-end completion, not payload throughput alone.
RQ 1 — Results

The certified frontier: GCP dominates AWS

GCP at 30 s reaches 14 GiB — larger than AWS at 120 s (12 GiB). Not a universal claim; result for these instance types, regions, and campaigns.
Evidence — Part-Upload Tail Latency

Why the frontier diverges: tail structure

CCDF = "what fraction of uploads took longer than x seconds?" — higher means more slow uploads.

AWS CCDF

AWS tail extends to ~100 s

GCP CCDF

GCP tail cuts sharply at ~20 s

AWS p99 ≈ 43–49 s vs. GCP p99 ≈ 4–5 s — an order-of-magnitude gap in tail risk. DKW bands (shaded) = sampling uncertainty around each curve; ~25.7 M observations.
Evidence — Goodput Regimes

Upload speed regimes: fast, slow, degraded

A Hidden Markov Model automatically classifies each moment of an upload into one of three speed states.

HMM regime overlay
GCP sustains ~600 MB/s goodput vs. AWS ~80 MB/s. Green = fast, yellow = slow, red = degraded. Classified automatically by a 3-state HMM.
RQ 1 — Typical vs. Robust

Median and worst-segment frontiers

Provider W (s) Best-median config Median Smax Worst-seg Smax Role
AWS 120 P=10, k=16 12 GiB 0 GiB Best typical
AWS 120 P=16, k=64 10 GiB 4 GiB Only robust config
GCP 30 P=10, k=64 14 GiB 8 GiB Best typical & robust
GCP 60 P=10, k=64 16 GiB 16 GiB Saturates grid
interpretation
RQ 1 — Typical vs. Robust

Two very different operating postures

AWS gives two answers

Best typical capacity = 12 GiB, but zero worst-segment guarantee. The only robust config (positive worst-segment) drops to 4 GiB.

The operator must choose: maximize typical capacity, or plan around adverse observed conditions and accept lower capacity.

GCP aligns typical and robust

Even at 30 s, its best config offers 8 GiB in the weakest segment. At 60 s, the frontier saturates the test grid at 16 GiB.

Best-median and worst-segment configs are the same.

The gap between median and worst-segment is itself a finding: it measures how much an operator must sacrifice for guaranteed coverage.
RQ 1 — Reliability near the boundary

State size is a threshold, not a dial

Fraction of segments certified safe as state size increases — best config per provider

AWS W = 120 s  (P=10, k=16)
GCP W = 30 s  (P=10, k=64)
The cliff: AWS drops from 64% → 0% between 12 and 16 GiB. GCP retains 50% at 16 GiB.  A 4 GiB increase near the boundary flips the outcome.
RQ 2 — Results

The dominant tuning knob is regime-dependent

AWS W = 120 s
Parallelism effect on median frontier
8 GiB
Chunk-size effect on median frontier
4 GiB
Parallelism is the stronger lever
GCP W = 30 s
Chunk-size effect on median frontier
12 GiB
Parallelism effect on median frontier
0 GiB — no median effect
Chunk size is the stronger lever
Advice such as "always increase concurrency" is unsafe. The useful control depends on the provider, the deadline, and the operating regime.
RQ 2 — Mechanism

Why the tuning advice changes

AWS — Straggler exposure

Multipart completion cannot finish until every required part has completed. Higher concurrency increases exposure to slow outstanding parts.

p95 slowest-part time (95% of uploads had a slowest part faster than this):

P=10~13 sP=64~65 s

Fail rate vs parallelism

Fail rate climbs steadily: 37% → 58% as parallelism increases — more threads, more exposure to a slow part.

GCP — Chunk-throughput leverage

Larger chunks translate more strongly into useful end-to-end throughput on GCP in the tested regime.

p95 throughput at 16 GiB (95th percentile):

~696 MiB/s  (best config)

The short-window frontier responds strongly to chunk efficiency rather than thread count.

Concurrency controls reliability, not just throughput. We observe the association; we do not claim a specific provider-internal cause.
Validity

Do the conclusions hold up?

  • Swapping Wilson for Clopper–Pearson (a stricter way to compute the same confidence bound) changed 0 / 163 segment frontiers.
  • Enforcing monotonicity — requiring that giving more time never shrinks the frontier — changed 0 / 18 configurations.
  • Raising the threshold above 95% shifts individual frontiers, but qualitative conclusions hold.
AWS remains more constrained and configuration-sensitive. GCP remains more forgiving. The dominant tuning control remains regime-dependent.
Summary

Takeaways

01

Deadline-bounded state evacuation is a reliability problem. Throughput benchmarks miss the failure modes.

02

The SOA frontier gives operators a lookup table: given (provider, deadline, config), how large can the state be?

03

GCP certifies 14 GiB at 30 s; AWS certifies 12 GiB at 120 s with a cliff at the boundary.

04

Tuning guidance is regime-specific. Parallelism dominates AWS at 120 s; chunk size dominates GCP at 30 s.

Future work

Checkpoint creation overhead Serialization cost Restart-time measurement Additional providers Alternative storage paths

A confidence-certified Safe Operating Area tells us how much state can be flushed before a spot VM disappears.

GCP · 30 s
14 GiB

median frontier  /  8 GiB worst-segment

AWS · 120 s
12 GiB

median frontier  /  0 GiB worst-segment (best median config)

Failure near the boundary behaves like a cliff. The correct tuning decision depends on the operating regime.

Thank you.  Questions?

jiasheng.zhuang@smc.college