All field notesBook a 30-min call

Making Kubernetes Requests Honest

How I used production telemetry to reclaim more than 20 CPU cores and roughly 95 GiB of requested memory without applying a blanket cut across Kubernetes workloads.

Kubernetes capacity problems are not always solved by adding nodes. Sometimes the scheduler is working from requests that no longer resemble the workloads.

On a production AI platform, the cluster looked heavily reserved and was showing real scheduling pressure. Adding workers would have relieved the symptom. Thirty days of telemetry showed a different problem: actual usage was far below many of the CPU and memory requests stored in GitOps-managed manifests.

The cluster was not empty, but a meaningful amount of capacity was stranded behind stale reservations.

Compare requests with reality

The right-sizing process was intentionally conservative:

  1. Inventory the production workload controllers and their current requests.
  2. Pull 30 days of CPU and memory telemetry.
  3. Compare p95, p99, and maximum usage with declared configuration.
  4. Group related services so repeated workloads receive consistent treatment.
  5. Change small batches, render manifests before merge, and validate health after rollout.

CPU requests came first because they were creating most of the scheduling pressure. The goal was not to clamp consumption. It was to stop reserving far more CPU than workloads needed for placement.

That distinction matters. Requests influence scheduling. Limits can throttle a process even when spare CPU exists. For bursty AI workloads, blindly reducing both can turn a capacity cleanup into a performance incident.

The result

The first production batches reclaimed more than 20 CPU cores and roughly 95 GiB of requested memory. The broader analysis exposed over 250 CPU cores and about 1 TiB of over-reserved capacity that could be evaluated safely over time.

More importantly, future capacity decisions could start from observed demand rather than configuration drift.

The reusable pattern is simple:

  • use telemetry instead of guesses
  • preserve headroom for real bursts
  • avoid broad percentage cuts
  • validate every rollout batch
  • keep changes in the source of truth
  • report recovered capacity in units people understand

Right-sizing is not only a cost exercise. Honest requests give the scheduler a better model, make capacity planning more trustworthy, and help teams distinguish real growth from artificial pressure.