From 1c7312e5da1ae8ca3cf238397939ed1d24f60758 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Fri, 7 Aug 2020 21:45:29 -0700 Subject: [PATCH] Update containerd systemd unit file Synchronizes unit file with CRI's version Signed-off-by: Derek McGowan --- containerd.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/containerd.service b/containerd.service index cae30ec7c..5f67110ab 100644 --- a/containerd.service +++ b/containerd.service @@ -11,6 +11,7 @@ Type=notify Delegate=yes KillMode=process Restart=always +RestartSec=5 # Having non-zero Limit*s causes performance problems due to accounting overhead # in the kernel. We recommend using cgroups to do container-local accounting. LimitNPROC=infinity @@ -19,6 +20,7 @@ LimitNOFILE=1048576 # Comment TasksMax if your systemd version does not supports it. # Only systemd 226 and above support this version. TasksMax=infinity +OOMScoreAdjust=-999 [Install] WantedBy=multi-user.target