Skip to content

Commit

Permalink
Add a fix for the "too many open files"
Browse files Browse the repository at this point in the history
  • Loading branch information
p4block authored Apr 22, 2024
1 parent 8e83d7d commit d6802db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit d6802db

Please sign in to comment.