Pods and nodes Cpu usages in kubernates

4/16/2018

Is Total cpu usages of a node sum up of all pods running in specific nodes.what is the relation between millicpu in cpu cores and % of cpu usages of node.Is request and limit control the cpu usages of pods if so then if a pods cpu usages reach its limit then it will be killed and move other node or continues execution in similar node with maximum limit.

-- JOY
kubernetes

1 Answer

4/16/2018

Millicores is an absolute number (one core divided by 1000). A given node typically has multiple cores, so the relation between the number of millicores and the total percentage varies. For example 1000 millicores (one core) would be 25% on a four core node, but 50% on a node with two cores.

Request determines how much cpu a pod is guaranteed. It will not be scheduled on a node unless the node can deliver that much.

Limit determines how much a pod can get. It will not be killed or moved if it exceeds the limit; it is simply not allowed to exceed the limit.

-- ewramner
Source: StackOverflow