You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The max_user_instances sysctl limit defaults to 128 on NixOS and per user. When NixOS containers are used, the inotify instances for root add up across containers, thus leading to exhaustion and Too many open files already for a few containers.
We should add to the containers section in the nixops manual that you should increase the limit when using the containers backend (e.g. boot.kernel.sysctl."max_user_instances" = 8192;).
The
max_user_instances
sysctl limit defaults to 128 on NixOS and per user. When NixOS containers are used, the inotify instances forroot
add up across containers, thus leading to exhaustion andToo many open files
already for a few containers.This is explained in https://kdecherf.com/blog/2015/09/12/systemd-and-the-fd-exhaustion/
Docker sets
fs.inotify.max_user_instances=8192
(moby/moby#1044).We should add to the containers section in the nixops manual that you should increase the limit when using the containers backend (e.g.
boot.kernel.sysctl."max_user_instances" = 8192;
).Related NixOS issue I filed: NixOS/nixpkgs#36214
The text was updated successfully, but these errors were encountered: