Skip to main content
discount · gcp

Always-on production Compute Engine VMs paying on-demand rates

resource types
1
rule IDs covered
1
severity
low

What does ZopNight detect here?

Production Compute Engine VMs are flagged when 60 days of history show at least 70% uptime and CPU or memory averaging 30% or more, with no committed purchase already recorded for them. Resource-based commitments bought with `gcloud compute commitments create` discount vCPUs and memory by up to 55% for most machine types.

Signal and threshold

How ZopNight evaluates Always-on production Compute Engine VMs paying on-demand rates.
Field Value
Rule IDsRC-1206
Categorydiscount
Severitylow
Metriccompute.googleapis.com/instance/cpu/utilization
Threshold70% uptime and 30% average CPU or memory
Evaluation window60d
SourceZopNight
Permissions usedcompute.instances.list · compute.commitments.list · monitoring.timeSeries.list

How resource-based commitments price a steady VM

A resource-based commitment is a promise to pay for a fixed amount of vCPU and memory of one machine series in one region for one or three years. Google’s commitment guide puts the discount at up to 55% off on-demand for vCPUs and memory on most machine types, and up to 70% on some. The commitment becomes active at midnight Pacific time the day after purchase, and it cannot be cancelled: it stays active, and billed, until its end date.

That makes the decision simple in principle: commit to the capacity that is always running, and leave anything that scales up and down on demand.

Looking at what is already committed

Start by checking existing commitments so you do not double-buy:

Terminal window
gcloud compute commitments list

Then compare with the VMs you consider always-on, for example by charting compute.googleapis.com/instance/cpu/utilization over 60 days for your production instances and grouping them by machine series and region.

Evidence ZopNight requires first

  1. The VM’s name marks it as production: it contains prod, production or live.
  2. No committed purchase type is recorded against the VM.
  3. There are at least 60 days of history, with the VM running at least 70% of the time.
  4. Measured CPU or memory utilisation averages at least 30%.
  5. The VM has a known cost and Google’s live rates show a positive commitment discount.

Where ZopNight says nothing

Any failed gate means no finding, as does a VM with no utilisation measurements at all. A break-even test compares a commitment billed for all 730 hours of a month with on-demand for the hours the VM actually ran, and suppresses the finding when the commitment would cost more. Commitments are regional rather than tied to a VM, so check the list above before buying. Labels are not used to detect production here; only the name is.

The saving figure

Terminal window
saving = on-demand cost for measured running hours - commitment cost at 730 h/month
fallback without running-hour data: saving = monthly cost x live commitment discount

The recommendation quotes the resulting percentage for that VM.

Committing to the baseline

  1. Confirm the workload will stay in this region and machine series for the term.
  2. Total the vCPUs and memory that stay running across similar VMs in the region.
  3. Buy a commitment for that baseline, for example: gcloud compute commitments create prod-n2-1y --plan=12-month --type=general-purpose-n2 --resources=vcpu=16,memory=64GB --region=us-central1.
  4. Leave bursty or short-lived capacity on demand, or use a Spot option where it fits.

See it fire on your bill.

Connect an account read-only. The first findings land in minutes.

472 rule families across 353 resource types on 22 platforms. Every threshold, metric, and IAM action is documented on these pages before you grant anything.

472 rule families documented
353 resource types covered
read-only default access level
Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·