Skip to main content
All of the catalog
Scenario

Cost & Capacity: Right-Sizing Over-Provisioned Resources

go-api arrives reserving 2000m CPU and 1Gi of memory - forty times what it uses. Drive real traffic, read the gap between reserved and used on the dashboard and in OpenCost, then right-size the requests. Grading has two sides: a request over the waste ceiling fails, and so does one under the peak the workload actually reached, because under-provisioning is how workloads get throttled and OOM-killed.

CostVerifiedk3dkind
Definition on GitHub

What you'll do

  • Read the waste: compare go-api's reserved CPU/memory against what it actually uses under load, on the dashboard and in OpenCost
  • Right-size the requests down from 2000m/1Gi - above the observed peak, under the waste ceiling. Both bounds are graded
  • Keep go-api healthy and un-throttled while doing it
  • Know which knob does what: requests drive scheduling and billing, limits cap usage and are what actually throttles

Stages

  1. 1inflate

    Over-provision go-api's CPU/memory requests 40×/32× (the 'before' state to observe in OpenCost)

    workload-overprovisionedopencost-metricscost-dashboard

Prerequisites

--deploy-prereqs installs these into the lab for you. They are listed so you know what the scenario depends on.

cost/opencostmonitoring/metricsingressgo-api

Get updates

New scenarios and faults, release notes, and news about hosted labs if and when there is some. A few emails a month at most.

We'll email you about new releases, new lab content and paid offerings such as hosted labs, courses and workshops. Unsubscribe any time.