docs/libcontainerd
Michael Crosby 89986cbff4 Add --oom-score-adjust to daemon
This adds an `--oom-score-adjust` flag to the daemon so that the value
provided can be set for the docker daemon's process.  The default value
for the flag is -500.  This will allow the docker daemon to have a
less chance of being killed before containers do.  The default value for
processes is 0 with a min/max of -1000/1000.

-500 is a good middle ground because it is less than the default for
most processes and still not -1000 which basically means never kill this
process in an OOM condition on the host machine.  The only processes on
my machine that have a score less than -500 are dbus at -900 and sshd
and xfce( my window manager ) at -1000.  I don't think docker should be
set lower, by default, than dbus or sshd so that is why I chose -500.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
(cherry picked from commit a894aec8d81de5484152a76d76b80809df9edd71)
Signed-off-by: Tibor Vass <tibor@docker.com>
2016-07-25 23:14:57 -07:00
..
windowsoci Windows: Use image version, not OS version for TTY fixup 2016-05-25 12:22:52 -07:00
client.go libcontainerd: reuse our pkg/locker 2016-03-29 09:43:12 -07:00
client_linux.go Merge pull request #23213 from crosbymichael/restore-option 2016-06-13 20:57:19 -07:00
client_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
client_windows.go all: fix usage of some variables 2016-07-25 23:13:48 -07:00
container.go Reset restart timeout if execution longer than 10s 2016-04-22 10:37:34 -07:00
container_linux.go Add support for multiples runtimes 2016-06-14 07:47:31 -07:00
container_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
container_windows.go Updating call sequence for servicing Windows containers 2016-06-10 15:19:10 -07:00
pausemonitor_linux.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
process.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
process_linux.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
process_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
process_windows.go Windows: Use image version, not OS version for TTY fixup 2016-05-25 12:22:52 -07:00
queue_linux.go Replace execdrivers with containerd implementation 2016-03-18 13:38:32 -07:00
remote.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
remote_linux.go Add --oom-score-adjust to daemon 2016-07-25 23:14:57 -07:00
remote_solaris.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
remote_windows.go Add --live-restore flag 2016-06-13 19:16:26 -07:00
types.go Add support for user-defined healthchecks 2016-06-02 23:58:34 +02:00
types_linux.go Adding postRunProcessing infrastructure for hanlding Windows Update. 2016-04-06 14:03:05 -07:00
types_solaris.go Get the Docker Engine to build clean on Solaris 2016-05-23 16:37:12 -07:00
types_windows.go Adding servicing update to postRunProcessing for Windows containers. 2016-04-25 12:16:26 -07:00
utils_linux.go Add ulimit support to libcontainerd addprocess 2016-03-23 19:54:32 -07:00
utils_windows.go Adding servicing update to postRunProcessing for Windows containers. 2016-04-25 12:16:26 -07:00