← Back to all posts

Kubernetes requests vs limits: the practical guide

Published October 1, 2026

⏱️ 2 min read

Why both numbers matter

requests is what the scheduler believes and reserves; limits is what the kernel enforces on the cgroup. Set requests too low and your pod lands on an already-full node; set limits too low and you meet the OOM killer. The two numbers answer different questions, and conflating them is how clusters get "mysterious" performance problems.

Read before you set

kubectl top pod --containers
kubectl describe node <node> | grep -A8 "Allocated resources"

Collect a week of real usage. Your request should sit near the 90th percentile of observed usage, not the average — the average is what you exceed half the time.

Three patterns that work

  1. Stateless web services: requests = p90 CPU, limit = 2× request. Memory: request = peak + 20%, limit = request (do not let memory burst — it gets killed, not throttled).
  2. Batch/CI jobs: high CPU limits (or no CPU limit), but always a memory limit. CPU throttling slows a batch job harmlessly; memory overage kills it.
  3. Databases and stateful sets: requests == limits (Guaranteed QoS) so the node never evicts them first, and the kernel never surprises them.

The anti-patterns

CPU limits on latency-sensitive services cause silent throttling artifacts (p99 spikes at random). Memory requests == tiny + huge limit causes node overcommit and eviction storms. And never copy the chart's defaults — they are placeholders, not recommendations.

Want a sandbox to break these rules on purpose? A managed cluster costs cents per node-hour: DOKS on DigitalOcean. (Partner link — never costs you extra.)

Partner pick — sponsored

Sentry — our error-tracking pick for this stack

See the exact line of code that broke — before your users report it. Free tier for small teams.

Get Sentry →
Also vetted

Vultr — Spin a disposable box to replay this failure without touching prod.

Get Vultr →

We earn a commission if you buy through our links — it never costs you extra. More vetted tools on our picks hub · comparing clouds? DigitalOcean vs Vultr and vs AWS · full deals: DigitalOcean · Vultr · NordLayer · Semrush

#AmazonAssociate — As an Amazon Associate I earn from qualifying purchases. Full disclosure →