Skip to content

DBzTech-Technology Dossier

A repository of technical findings.

Menu
  • COBOL
  • DB2
  • SAS
  • JCL
  • Google Cloud
  • AI
Menu
spot vm and preemtible vm in GCP

Preemptible VMs Vs Spot VMs (in GCP)

Posted on March 29, 2026May 16, 2026 by DBZtech

Imagine an application processes thousands of log files every night. The results are important, but not urgent. If a job fails today, it can run again tomorrow.

This is where Preemptible VMs and Spot VMs shine. When you run workloads in the cloud, not everything needs to be always on. Some jobs just need cheap compute, even if they might get interrupted.

Let’s understand them with a short story.


πŸ“– The Story: Two Teams, Same Budget Goal

Team A runs nightly batch jobs that finish in a few hours. If they fail, they can retry tomorrow.
Team B trains AI models that can run for days β€” but they still want the lowest possible cost.

Team A chooses Preemptible VMs.
Team B chooses Spot VMs.

Why? Let’s break it down.

🟑 Preemptible VMs – The Original Budget Workers

Preemptible VMs are short-lived, very cheap instances (up to ~80% cheaper than on-demand).

But there’s a catch:
πŸ‘‰ They always stop within 24 hours, even if nothing goes wrong.

GCP can also stop them earlier when it needs capacity. When that happens, you get a 30-second warning.

βœ” Best for:

  • Batch jobs
  • Data processing
  • Rendering
  • Anything fault-tolerant and short-running

πŸ”΅ Spot VMs – The New-Gen Upgrade

Spot VMs are the modern replacement for Preemptible VMs.

They work the same way (interruptible, cheap, no SLA)…
πŸ‘‰ But they do NOT have a 24-hour time limit.

They can run for days or weeks β€” unless GCP needs the capacity back.

βœ” Best for:

  • Long analytics pipelines
  • AI / ML training
  • Large simulations
  • Cheap long-running compute
FeaturePreemptible VMSpot VM
Max Runtime❗ 24 hours maxβœ… No time limit
Can Be Stopped AnytimeYesYes
Preemption Warning30 seconds30 seconds
PricingUp to ~80% cheaper60–91% cheaper (dynamic)
SLA❌ No❌ No
Auto Restart❌ No❌ No
Free Tier Credits❌ Not applicable❌ Not applicable
Best ForShort batch jobsLong cheap workloads

🧠 Final Takeaway

βœ” Preemptible VM = cheapest, but short-lived by design
βœ” Spot VM = cheapest, but can run much longer

If your job finishes fast β†’ use Preemptible
If your job runs long β†’ use Spot

©2026 DBzTech-Technology Dossier | Design: Newspaperly WordPress Theme