cgroup¶
The limits and the usage of the cgroup (v2) a worker runs in.
cpu_quota
¶
The number of cores the CPU quota of cpu.max allows.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
root
|
Path
|
The directory of the cgroup. |
CGROUP_ROOT
|
Returns:
| Type | Description |
|---|---|
int | None
|
The quota over the period, rounded down and at least 1, or |
int | None
|
quota or without the file. |
memory_limit
¶
The memory limit of memory.max in bytes, None without a limit.
memory_anon
¶
The anonymous memory of memory.stat (anon) in bytes.
The memory the processes allocated, without the page cache which memory.peak
counts and the kernel reclaims at the limit instead of killing.
Returns:
| Type | Description |
|---|---|
int | None
|
The bytes, |
memory_oom_kills
¶
The processes of the cgroup the out of memory killer killed (oom_kill).
The counter of memory.events, the evidence of a kill for memory: a process
which exits 137 may have been killed by anyone with SIGKILL.
Returns:
| Type | Description |
|---|---|
int | None
|
The count, |
cpu_throttled_seconds
¶
The seconds the processes of the cgroup waited for its CPU quota.
throttled_usec of cpu.stat: time a process could have run but the quota of
cpu.max held it back, the evidence that a task needs more cores.
Returns:
| Type | Description |
|---|---|
float | None
|
Seconds, |