From b8f7499a3b4f7c671f0a54fc6f5aceed08267949 Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sat, 16 Jan 2016 18:26:08 +0100 Subject: [PATCH] Set TasksMax in addition to LimitNPROC in systemd service files systemd sets an additional limit on processes and threads that defaults to 512 when run under Linux >= 4.3. See more information here: http://unix.stackexchange.com/a/255603/59955 Signed-off-by: Candid Dauth Upstream-commit: 105778343a2e5d510fae1cbdb1b7ab6879e5a028 Component: engine --- components/engine/contrib/init/systemd/docker.service | 1 + components/engine/docs/articles/systemd.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/engine/contrib/init/systemd/docker.service b/components/engine/contrib/init/systemd/docker.service index 6015b7441f..d43658e700 100644 --- a/components/engine/contrib/init/systemd/docker.service +++ b/components/engine/contrib/init/systemd/docker.service @@ -11,6 +11,7 @@ MountFlags=slave LimitNOFILE=1048576 LimitNPROC=1048576 LimitCORE=infinity +TasksMax=1048576 TimeoutStartSec=0 [Install] diff --git a/components/engine/docs/articles/systemd.md b/components/engine/docs/articles/systemd.md index 633466dc79..5eec275ca8 100644 --- a/components/engine/docs/articles/systemd.md +++ b/components/engine/docs/articles/systemd.md @@ -88,6 +88,7 @@ In this example, we'll assume that your `docker.service` file looks something li ExecStart=/usr/bin/docker daemon -H fd:// LimitNOFILE=1048576 LimitNPROC=1048576 + TasksMax=1048576 [Install] Also=docker.socket