Skip to content

Commit ccebed2

Browse files
authored
Merge pull request #2601 from crosbymichael/unit
Update unit file for resources and task max
2 parents 777cc50 + 4972e3f commit ccebed2

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)