Resources
Last updated
Was this helpful?
Last updated
Was this helpful?
. Find inside:
explanation of CPU resource and limits for k8s Pod
Prometheus queries to monitor Pod metrics
1 CPU Unit = 1024 CPU Shares
Below is how CFS will balance PODs with different CPU Unit resource configuration among cores
A CPU requests unit can be understood as the percentage of a given CPU period that is guaranteed to Pod.
It does not mean that if POD uses less resources than it requested, the CPU will remain idle. If another Pod is runnable at that time, CFS will schedule that Pod.
CPU limit unit can be understood as the percentage of each scheduler CPU period (100 ms) that a Pod cannot exceed. E.g.: limit of 750 m CPU means that each 100 ms period POD cannot use more than 75 ms of CPU time.
When an application attempts to use more CPU than it is limited to — CFS will throttle it.