← Back to case studies

Case Study

Halving Daily GCP Spend by Moving Serverless onto Kubernetes Spot

A cost program that cut daily cloud spend roughly in half by moving most Cloud Run services onto shared GKE clusters on Spot capacity, then cleaning up idle environments, oversized databases, and storage nobody used.

GCPFinOpsGKECloud RunSpotCost Optimization
daily cloud spend, peak week to mid-October
−51%
daily cloud spend, peak week to mid-October
Cloud Run spend
−92%
Cloud Run spend
billed Cloud Run services
250 → 28
billed Cloud Run services

Challenge

The client’s GCP bill had grown with the platform. About 250 Cloud Run services billed every month, several pre-production environments ran around the clock, the database fleet was larger than the load needed, and a long savings backlog had never been checked against live systems. Daily spend held near its peak into early summer.

Approach

  • Moved most Cloud Run services onto shared GKE clusters, running mostly on Spot capacity. This was the single biggest lever.
  • Decommissioned unused and pre-production environments, and parked the ones that only needed to exist on demand.
  • Rightsized an oversized database fleet and shrank over-provisioned database disks.
  • Consolidated small GKE clusters onto fewer nodes and moved the remaining capacity to Spot.
  • Moved short-running batch jobs and utility VMs to Spot, and removed an unneeded read replica, an unused cache, and idle proof-of-concept VMs.
  • Purged old container images and orphaned preview environments.
  • Checked every backlog item against live systems before acting on it, and tracked the overall run-rate rather than a list of claimed savings.

Outcomes

  • Daily cloud spend fell 51% from its peak week, measured before discounts.
  • Cloud Run spend fell 92% as billed services dropped from about 250 to 28.
  • GKE absorbed those workloads while growing by only about 4% of the Cloud Run spend it replaced.
  • Database fleet spend fell 23% after rightsizing.
  • The run-rate dropped another 14% in the six weeks after the first clean-up wave.

Monthly spend, indexed to the peak month

Peak month = 100. Raw usage cost before discounts.

Monthly spend, indexed to the peak monthApr: 100100AprMay: 9999MayJun: 9797JunJul: 9393JulAug: 8080AugSep: 5757Sep
Monthly spend, indexed to the peak month
LabelValue
Apr100
May99
Jun97
Jul93
Aug80
Sep57

Where it came down

Change from the starting point, before discounts.

  • Cloud Run spend−92%
  • Billed Cloud Run services−89%
  • Daily cloud spend−51%
  • Database fleet spend−23%
Where it came down
LabelValue
Cloud Run spend−92%
Billed Cloud Run services−89%
Daily cloud spend−51%
Database fleet spend−23%

What we learned

  • Measure before discounts. Credits and discounts land in irregular lumps, so invoice-level daily numbers swing for reasons that have nothing to do with usage. Track raw usage cost and convert with the real invoice ratio.
  • The monthly bill lags the work. Most of one month’s changes landed in its last nine days, so that invoice showed only a sliver of them. Judge progress on the daily run-rate.
  • Savings get offset by growth. Pre-production build minutes doubled over the same period. A list of savings never shows that. The overall run-rate does.
  • Check every claim against live systems. About a third of the open savings list was already done, duplicated, or not a real saving. One service that looked removable turned out to be a hidden dependency.
  • Commitments cap Spot savings. With prepaid compute commitments fully used, moving work to Spot only saves on usage above the committed baseline. Size the commitment and the Spot plan together.