Merge pull request #2601 from crosbymichael/unit

Update unit file for resources and task max
This commit is contained in:
Phil Estes 2018-08-31 08:02:57 -07:00 committed by GitHub
commit ccebed214c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,13 +6,17 @@ After=network.target
[Service] [Service]
ExecStartPre=/sbin/modprobe overlay ExecStartPre=/sbin/modprobe overlay
ExecStart=/usr/local/bin/containerd ExecStart=/usr/local/bin/containerd
Delegate=yes Delegate=yes
KillMode=process KillMode=process
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead # Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting. # in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity LimitNPROC=infinity
LimitCORE=infinity LimitCORE=infinity
LimitNOFILE=infinity
# Comment TasksMax if your systemd version does not supports it.
# Only systemd 226 and above support this version.
TasksMax=infinity
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target