summarylogtreecommitdiffstats
path: root/k3s.service
diff options
context:
space:
mode:
authorNicolas Martyanoff2022-01-07 07:27:40 +0100
committerNicolas Martyanoff2022-01-07 07:29:32 +0100
commitb498df87304a659542a7954e3bfc12c8d3c69e8d (patch)
tree6222135639f6b954d8945f2486e1f3c28e16d791 /k3s.service
parent6e6990a9d54a1e3d2eef1be3b0d4c1cf1b7f9bb6 (diff)
downloadaur-b498df87304a659542a7954e3bfc12c8d3c69e8d.tar.gz
do not use an infinite value for the limit of open files
See https://github.com/k3s-io/k3s/commit/b4335630b78b5cf927e79724067803a6c0d7c04f.
Diffstat (limited to 'k3s.service')
-rw-r--r--k3s.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/k3s.service b/k3s.service
index fe760f49879d..828510faf30f 100644
--- a/k3s.service
+++ b/k3s.service
@@ -11,7 +11,10 @@ ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/bin/k3s server
KillMode=process
Delegate=yes
-LimitNOFILE=infinity
+# Having non-zero Limits causes performance problems due to accounting overhead
+# in the kernel. We recommend using cgroups to do container-local accounting.
+# See https://github.com/k3s-io/k3s/commit/b4335630b78b5cf927e79724067803a6c0d7c04f
+LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity