Skip to main content
FieldTypeDescriptionValue(s)
triggerExpressionExpressionThis expression defines when to trigger OOM action.

The expression must evaluate to a boolean value.
If the expression returns true, then OOM ranking and killing will be handled.

This expression receives the following parameters:
- memory_{some,full}_{avg10,avg60,avg300,total} - double, representing PSI values
- time_since_trigger - duration since the last OOM handler trigger event
cgroupRankingExpressionExpressionThis expression defines how to rank cgroups for OOM handler.

The cgroup with the highest rank (score) will be evicted first.
The expression must evaluate to a double value.

This expression receives the following parameters:
- memory_max - Optionaluint - in bytes
- memory_current - Optionaluint - in bytes
- memory_peak - Optionaluint - in bytes
- path - string, path to the cgroup
- class - int. This represents cgroup QoS class, and matches one of the constants, which are also provided: Besteffort, Burstable, Guaranteed, Podruntime, System
strictCgroupClassOrderingboolWhether to enforce strict QoS class ordering when selecting an OOM victim.

When enabled (the default), cgroups in the lowest-importance QoS class are
killed first, and the ranking score only breaks ties within a class.
When disabled, the highest-scoring cgroup is killed regardless of class.
sampleIntervalDurationHow often should the trigger expression be evaluated.

This interval determines how often should the OOM controller
check for the OOM condition using the provided expression.
Adjusting it can help tune the reactivity of the OOM handler.