moby--moby/libcontainerd
Michael Crosby a894aec8d8 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>
2016-07-12 15:53:15 -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 Merge pull request #24156 from Microsoft/jjh/clearbasefs 2016-07-07 15:35:14 -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 Merge pull request #23776 from Microsoft/ShutdownError 2016-06-22 12:11:00 -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: Disable VM cloning for TP5 image 2016-06-24 16:12:44 -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-12 15:53:15 -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 Windows: Disable VM cloning for TP5 image 2016-06-24 16:12:44 -07:00