Incident Replay · Compute and scaling
Why Your P99 Latency Spikes on EKS While CPU Sits at 40%
A CPU limit is a quota of CPU time per 100 ms, not a speed. Change the limit, threads and node of api, the service Sam is on call for, and watch one period freeze, then replay Sam's page.
CPU throttling in 60 seconds
- A CPU limit is a quota of CPU time: limit × 100 ms per 100 ms. Spend it early and every thread is paused (throttled).
- Threads spend it fast. api's 8 busy threads on 8 vCPUs burn a 1-CPU quota in 12.5 ms, then freeze for 87.5 ms.
- Average CPU hides it. Frozen time looks idle. Alert on the throttle ratio (throttled ÷ total periods) when it stays above 5 to 10%.
- More replicas or a bigger node won't fix it. Each Pod keeps the same quota; more cores spend it faster.
- Keep the request and memory limit; drop the CPU limit. If a cap must stay, set it well above normal use, or give whole cores.