Skip to content

Commit 4972e3f

Browse files
committed
Update unit file for resources and task max
Signed-off-by: Michael Crosby <[email protected]>
1 parent 777cc50 commit 4972e3f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

containerd.service

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ After=network.target
66
[Service]
77
ExecStartPre=/sbin/modprobe overlay
88
ExecStart=/usr/local/bin/containerd
9+
910
Delegate=yes
1011
KillMode=process
11-
LimitNOFILE=1048576
1212
# Having non-zero Limit*s causes performance problems due to accounting overhead
1313
# in the kernel. We recommend using cgroups to do container-local accounting.
1414
LimitNPROC=infinity
1515
LimitCORE=infinity
16+
LimitNOFILE=infinity
17+
# Comment TasksMax if your systemd version does not supports it.
18+
# Only systemd 226 and above support this version.
19+
TasksMax=infinity
1620

1721
[Install]
1822
WantedBy=multi-user.target

0 commit comments

Comments
 (0)