X Tutup
Skip to content

Commit b009642

Browse files
committed
Add rlimits to service file
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
1 parent 07d4154 commit b009642

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

containerd.service

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ ExecStartPre=/sbin/modprobe overlay
88
ExecStart=/usr/local/bin/containerd
99
Delegate=yes
1010
KillMode=process
11+
LimitNOFILE=1048576
12+
# Having non-zero Limit*s causes performance problems due to accounting overhead
13+
# in the kernel. We recommend using cgroups to do container-local accounting.
14+
LimitNPROC=infinity
15+
LimitCORE=infinity
1116

1217
[Install]
1318
WantedBy=multi-user.target

0 commit comments

Comments
 (0)
X Tutup