From d6802db16092d7d90c7a7038be26c68fcde6d5a7 Mon Sep 17 00:00:00 2001 From: Pablo Date: Tue, 23 Apr 2024 01:33:43 +0200 Subject: [PATCH] Add a fix for the "too many open files" --- common/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/configuration.nix b/common/configuration.nix index cfcc6b5..97d6b59 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -26,6 +26,11 @@ "net.ipv4.conf.default.accept_redirects" = 0; "net.ipv4.tcp_syncookies" = 1; "net.ipv4.route.flush" = 1; + + # Solve the "too many open files" errors that are rampant on massive containerized enviroments + "fs.inotify.max_queued_events" = 1048576; + "fs.inotify.max_user_instances" = 1048576; + "fs.inotify.max_user_watches" = 1048576; }; kernelParams = [