diff --git a/runtime-config-linux.md b/runtime-config-linux.md index 838e94e1e..f1d53e8c6 100644 --- a/runtime-config-linux.md +++ b/runtime-config-linux.md @@ -158,6 +158,14 @@ For example, to run a new process in an existing container without updating limi "disableOOMKiller": false ``` +#### Set oom_score_adj + +More information on `oom_score_adj` available [here](https://www.kernel.org/doc/Documentation/filesystems/proc.txt). + +```json + "oomScoreAdj": 0 +``` + #### Memory ```json diff --git a/runtime_config_linux.go b/runtime_config_linux.go index cd55f7c9d..ff68e773f 100644 --- a/runtime_config_linux.go +++ b/runtime_config_linux.go @@ -198,6 +198,8 @@ type Network struct { type Resources struct { // DisableOOMKiller disables the OOM killer for out of memory conditions DisableOOMKiller bool `json:"disableOOMKiller"` + // Specify an oom_score_adj for the container. Optional. + OOMScoreAdj int `json:"oomScoreAdj"` // Memory restriction configuration Memory Memory `json:"memory"` // CPU resource restriction configuration