What is CPU throttling, and how do you detect it?
AdvancedProductionResource Limits, Health & Reliability
Answer
When a container uses its full CFS quota within a 100ms period it is paused until the next period, causing p99 latency spikes even at low average CPU. Check nr_throttled and throttled_usec in cpu.stat:
cat /sys/fs/cgroup/system.slice/docker-$ID.scope/cpu.stat
Fix by raising/removing CPU limits (keep requests in Kubernetes) or reducing thread counts to match the quota.
More on Resource Limits, Health & Reliability
How do you set memory and CPU limits, and what happens when they are exceeded?BeginnerWhat is the difference between `--cpus`, `--cpu-shares` and `--cpuset-cpus`?BeginnerWhat does `--memory-reservation` do?AdvancedHow do you diagnose an OOM-killed container?IntermediateWhy do JVM and Node services in containers need explicit memory flags?IntermediateHow do you limit PIDs and open files in a container?Beginner