# Google Cloud Cost Optimization

> We find what you pay Google Cloud for without using, from GKE node pools and machine families to commitments, Spot and idle services, and fix it with a rollback for every change.

Page: https://www.leafcompute.com/services/google-cloud-cost-optimization

## Why Google Cloud bills grow faster than usage

Most of the waste we find on Google Cloud is not the price per machine. It's capacity that is reserved and paid for but never used.

- **Requests set by guess.** Pods ask for CPU they never touch, so nodes fill up on paper while sitting idle. On one platform, nodes were 97% reserved but only 15% busy at the median over seven days. One browser worker reserved a full vCPU and used 17 millicores at the 95th percentile.
- **The wrong machine family.** Prices differ a lot between families for the same work. Moving that fleet from n2d to c3d Spot machines made each node 30.1% cheaper at Google's list prices.
- **Slow scale-down.** After a burst, idle pods and nodes linger for tens of minutes. On the same platform, idle pods after bursts went from 948 on average to 318, removed in about 8 minutes instead of about 40.
- **Commitments bought too early,** before anyone measured what the steady base really is.
- **Forgotten services:** unused node pools, old storage, scanners and managed services nobody reviews.

## Every lever we work through

### GKE requests, limits and bin packing
We set requests from measured p95 and peak usage, not averages, and pack more pods per node. On the platform above, the average fleet went from about 1,000 to about 537 vCPU doing the same work.

### Machine families and custom shapes
We price each node pool against Google's billing catalog, including Spot, and pick the cheapest family that meets the workload's CPU and memory profile.

### Spot VMs that survive reclaims
For fault-tolerant work we run on Spot with a fallback across machine families, so a capacity shortage in one family doesn't stop the fleet. That platform ran a Spot browser fleet that peaked at 703 nodes.

### Autoscaling that scales down
Scale-up is usually fine. We tune scale-down, queue-based autoscaling (KEDA) and node pool settings so capacity leaves when the work does.

### Commitments, after sizing
Committed use discounts for the steady base you'll keep, bought once the fleet is right-sized.

### Everything outside the cluster
Cloud Run, Firestore, storage, logging and security tooling get the same line-by-line review, with a clear note of anything that is a business decision rather than engineering.

## How an engagement runs

1. **Review (about two weeks).** Billing export, monitoring and the cluster. You get a list of changes, each with its estimated saving, risk and effort.
2. **Plan.** We agree the order with your team. Every change has a way back.
3. **Put it in place.** Quick wins first, then machine moves and commitments in stages, each checked against the live system before and after.
4. **Keep it lean.** Budgets, alerts and a short monthly review so the savings don't drift back.

## Results from a live platform

An AI web-data platform serving 18 to 25 million API requests a day, running a large browser fleet on GKE:

| What changed | Result |
|---|---|
| Google Cloud bill | about $25,600 to about $9,600 a month (list price, before credits) |
| Average GKE fleet | about 1,000 to about 537 vCPU |
| Cost per node after the machine-family move | 30.1% lower at list price |
| Idle pods after bursts | 948 to 318 on average, removed in about 8 minutes instead of about 40 |

The full story is in the [case study](/case-studies/olostep). For AWS and other clouds, see [cloud cost optimization](/services/cost-optimization). For running the clusters day to day, see [Kubernetes cost and operations](/services/kubernetes-management).

## Common questions

### How much can we expect to save on Google Cloud?

We don't promise a number before we've seen the bill. After the review you get an estimate per item. As a reference, on one AI web-data platform the Google Cloud bill went from about $25,600 to about $9,600 a month, at list price before credits.

### We run on startup credits. Why bother now?

Credits hide the bill, they don't shrink it. When they run out, the list-price bill arrives in full, usually at a moment when traffic is growing. Fixing sizing and machine choices while credits still pay is the cheap time to do it.

### Should we buy committed use discounts first?

Usually not first. Commit to what you'll still need after right-sizing, or you lock in waste for one or three years. We size the fleet, then commit to the steady base and leave bursts on Spot or on demand.

### Will Spot VMs hurt reliability?

Only if the workload can't handle a reclaim. On the platform above, Spot nodes were reclaimed about 0.5 to 0.7 times per node per day, so jobs were built to retry and capacity to come back from another machine family when one ran out.

### What access do you need?

Read-only access to billing exports and Cloud Monitoring is enough for the review. Changes go through your normal review, in Terraform or Helm where you have them, and your team can make them if you prefer.

### How long until the bill drops?

The review takes about two weeks. Right-sizing, scale-down and clean-up usually show on the next bill. Machine-family moves and commitments are planned in stages after that.

---
Leaf Compute: https://www.leafcompute.com · hello@leafcompute.com
