@@ -253,22 +253,6 @@ Each entry has the following structure:
253253 ]
254254```
255255
256- ### <a name =" configLinuxDisableOutOfMemoryKiller " />Disable out-of-memory killer
257-
258- ` disableOOMKiller ` contains a boolean (` true ` or ` false ` ) that enables or disables the Out of Memory killer for a cgroup.
259- If enabled (` false ` ), tasks that attempt to consume more memory than they are allowed are immediately killed by the OOM killer.
260- The OOM killer is enabled by default in every cgroup using the ` memory ` subsystem.
261- To disable it, specify a value of ` true ` .
262- For more information, see the kernel cgroups documentation about [ memory] [ cgroup-v1-memory ] .
263-
264- * ** ` disableOOMKiller ` ** * (bool, OPTIONAL)* - enables or disables the OOM killer
265-
266- #### Example
267-
268- ``` json
269- "disableOOMKiller" : false
270- ```
271-
272256### <a name =" configLinuxMemory " />Memory
273257
274258** ` memory ` ** (object, OPTIONAL) represents the cgroup subsystem ` memory ` and it's used to set limits on the container's memory usage.
@@ -282,9 +266,14 @@ Values for memory specify the limit in bytes, or `-1` for unlimited memory.
282266* ** ` kernel ` ** * (int64, OPTIONAL)* - sets hard limit for kernel memory
283267* ** ` kernelTCP ` ** * (int64, OPTIONAL)* - sets hard limit for kernel TCP buffer memory
284268
285- For ` swappiness ` the values are from 0 to 100. Higher means more swappy.
269+ The following properties do not specify memory limits, but are covered by the ` memory ` controller:
286270
287271* ** ` swappiness ` ** * (uint64, OPTIONAL)* - sets swappiness parameter of vmscan (See sysctl's vm.swappiness)
272+ The values are from 0 to 100. Higher means more swappy.
273+ * ** ` disableOOMKiller ` ** * (bool, OPTIONAL)* - enables or disables the OOM killer.
274+ If enabled (` false ` ), tasks that attempt to consume more memory than they are allowed are immediately killed by the OOM killer.
275+ The OOM killer is enabled by default in every cgroup using the ` memory ` subsystem.
276+ To disable it, specify a value of ` true ` .
288277
289278#### Example
290279
@@ -295,7 +284,8 @@ For `swappiness` the values are from 0 to 100. Higher means more swappy.
295284 "swap" : 536870912 ,
296285 "kernel" : -1 ,
297286 "kernelTCP" : -1 ,
298- "swappiness" : 0
287+ "swappiness" : 0 ,
288+ "disableOOMKiller" : false
299289 }
300290```
301291
0 commit comments