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.
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_adjtunable. A score of-1000disables the OOM killer, and the max score of1000makes it a near certain target for the OOM killer.Additionally, since
-1000disables the OOM killer, this setting would deprecate the current--oom-kill-disableparameter.