JRJérôme RaguilletFinOps · Cloud & AIFR
← All insights
FINOPS · CLOUD & AI

Spot Instances: Triage Workloads Before Counting Savings

Every night, 60 vCPU of batch jobs and two test environments left running without activity: the starting point for a switch to AWS Spot Instances and Azure Spot VMs, with a triage rule, an accepted interruption risk and a reported gap of $115,000 per year.

The Starting Point: 60 vCPU Every Night

Every night, our batch jobs used 60 vCPU. Alongside that, two test environments remained running without activity. For 18 months, the whole thing ran on pay-as-you-go, with usage-based billing.

Worth highlighting this starting point: the problem was not spectacular overprovisioning, but a mismatch between the purchasing mode and the nature of the workloads. Batch jobs that run at night and can be restarted do not have the same constraints as a database that must remain available.

The Triage Rule: Interruptible or Not

Since then, genuinely interruptible workloads use AWS Spot Instances or Azure Spot VMs. The rule applied comes down to two lists.

On the Spot side: restartable batch jobs, CI/CD, rendering and data processing; as well as autoscalable workers with a checkpoint mechanism. On the pay-as-you-go or suitable commitment side: databases, unreplicated in-memory state, and APIs without a recovery mechanism.

The triage criterion is not technological, it is architectural: what happens if this instance disappears now? A restartable batch job starts again. A worker that writes a checkpoint resumes from the last mark. A database or an API without recovery, no.

Spot Remains an Interruption Risk

Spot pricing can reduce the bill when the architecture can absorb interruptions through checkpoints, retries, multiple instance types and, where needed, multiple zones.

Risk is also managed through distribution: multiplying instance types and zones reduces the probability that an interruption affects everything at once. This has a cost, in configuration complexity as well as in consistency of available capacities.

In other words, Spot shifts part of the complexity from the bill to the architecture. If recovery mechanisms do not exist, the real cost includes engineering time to build them and manual recoveries until they are in place. This is the main trade-off: pay less per instance hour, or pay in operational complexity.

The Calculation: From $16,000 to $6,400 per Month

Before: $16,000/month. After: $6,400/month. Difference: $9,600/month. Over twelve months, 9,600 × 12 = $115,200/year, rounded to $115,000.

These amounts are those reported; they are not independently verified. They depend on the scope chosen, instance types, regions and observation period. The implicit ratio, about a 60% decrease, should be read as an order of magnitude on this precise scope, not as a rate transposable as is.

To reproduce this type of calculation on one's own scope, the approach consists of inventorying workloads, classifying them by interruptibility, then comparing the cost of the Spot scope with the cost of the same scope on pay-as-you-go. The result depends heavily on the share of the bill that actually switches.

2% Interruptions: What the Figure Says and Does Not Say

On the scope concerned, 2% of instances were interrupted, and these interruptions were absorbed by the recovery mechanisms.

The figure is reassuring, provided one specifies what it measures: an observed rate on a given scope, over a given period, with recovery mechanisms already in place. It says nothing about the cost of the recoveries themselves, nor about what would happen on a non-checkpointed workload. Interruption frequency varies by instance family, region and availability zone — which justifies distributing across several instance types and, if necessary, several zones.

Questions to Ask Before Switching

The question raised at the end is the right one: what share of your workloads can really be interrupted? A few questions help break it down.

An instance lost midway: is the work lost or replayed, and how much time does the replay cost? Is the recovery pipeline automatic or manual? Does the orchestrator know how to mix several instance types and several zones? Are unused test environments turned off — the two environments running without activity suggest that the simplest saving is sometimes the first to go after?

Then there is the stable and predictable share of the workload: for that, a suitable commitment is often more relevant than Spot, because it does not need to be interruptible and gains nothing from carrying an interruption risk.

What Official Documentation Allows You to Verify

Interruption conditions, recovery mechanisms and pricing models are described in the official documentation of AWS and Microsoft. That is where exact behaviors should be verified before transposing an experience to one's own scope: the figures cited here remain reported orders of magnitude, not guarantees.

The post behind this insight

Expanded from the LinkedIn post. The links below come from the original post; listing them does not imply independent verification.

LinkedIn ↗

Links included in the post

Continue reading

My FinOps approach · My Cloud and AI consulting services