From 45d80caf78499cfd7282041ae7cf5b7d1517d03f Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sun, 19 Mar 2023 21:10:09 +0100 Subject: [PATCH] gitlab_runner: Set reasonable NOFILE limits to avoid bugs The default limits cause issues as reported upstream[1][2], it also breaks the mkinitcpio CI[3]. So match the limits set in systemd since v240[4]. [1] https://github.com/moby/moby/issues/38814 [2] https://github.com/containerd/containerd/pull/7566 [3] https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/commit/da223d2f96b3a397191f3e605f82d95962b15b65 [4] https://github.com/systemd/systemd/blob/4f44d2c4f76922a4f48dd4473e6abaca40d7e555/NEWS#L6556-L6590 --- roles/gitlab_runner/files/daemon.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/roles/gitlab_runner/files/daemon.json b/roles/gitlab_runner/files/daemon.json index 85ff0799d..89a5ef7dc 100644 --- a/roles/gitlab_runner/files/daemon.json +++ b/roles/gitlab_runner/files/daemon.json @@ -2,5 +2,12 @@ "ipv6": true, "fixed-cidr-v6": "fd00::/80", "cgroup-parent": "docker.slice", - "log-driver": "journald" + "log-driver": "journald", + "default-ulimits": { + "nofile": { + "Name": "nofile", + "Hard": 524288, + "Soft": 1024 + } + } } -- GitLab