Skip to content

Support setting OOM score #13116

@phemmer

Description

@phemmer

One thing that would be useful is prioritizing certain containers when it comes to the OOM killer. Right now, docker only supports a simple on/off. It would be much more useful to be able to score containers, so that if a process has to be killed, it favors certain containers.
This behavior is controlled by the /proc/$pid/oom_score_adj tunable. A score of -1000 disables the OOM killer, and the max score of 1000 makes it a near certain target for the OOM killer.

Additionally, since -1000 disables the OOM killer, this setting would deprecate the current --oom-kill-disable parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureFunctionality or other elements that the project doesn't currently have. Features are new and shiny

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions