Interview Prep/Kubernetes/Scheduling, Resources & Autoscaling

Explain what happens with CPU requests under contention (cgroups) versus limits.

AdvancedConceptScheduling, Resources & Autoscaling
Answer

Requests become cgroup cpu.weight (shares): under contention each container gets CPU proportional to its request, and there is no cap when the node has idle CPU. Limits become cpu.max quota. So requests give a guaranteed minimum under contention; limits give a hard ceiling that can throttle even without contention.

All Kubernetes questions Roadmap: Kubernetes core

More on Scheduling, Resources & Autoscaling