From 0e4fa5024431705535129d4199c7af8bdce5e766 Mon Sep 17 00:00:00 2001 From: Predrag Rogic Date: Fri, 19 Sep 2025 23:11:41 +0100 Subject: [PATCH] set sysctl params for inotify, to avoid 'too many open files' errors --- hack/jenkins/common.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hack/jenkins/common.sh b/hack/jenkins/common.sh index c9349bf110..cd65f014cb 100755 --- a/hack/jenkins/common.sh +++ b/hack/jenkins/common.sh @@ -89,6 +89,13 @@ if [ "$(uname)" = "Darwin" ]; then fi fi +## set sysctl params for inotify, to avoid "too many open files" errors +## ref: https://cloud.google.com/kubernetes-engine/distributed-cloud/bare-metal/docs/installing/configure-os/ubuntu +if [ "$OS" == "linux" ]; then + sudo sysctl -w fs.inotify.max_user_instances=8192 + sudo sysctl -w fs.inotify.max_user_watches=524288 +fi + # We need pstree for the restart cronjobs if [ "$(uname)" != "Darwin" ]; then sudo apt-get -y install lsof psmisc dnsutils