Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Failed to allocate directory watch: Too many open files #2252
I have 15 LXD Containers running and some containers are failing to function correctly because there are too many files open.
The server is running Vanilla Ubuntu 16.04 Server (up-to-date) with all configuration modifications listed below:
Number of files open by
Steps to reproduce
Information to attach
@pcdummy I reloaded the sysctl variables, close all sessions, closed all containers, closed all LXD services, even closed the ZFS pools
You're not bumping the right limit. That error is almost certainly an inotify limit. Try bumping the ones in /proc/sys/fs/inotify
Those aren't namespaced yet, so you need to bump them on the host to affect the containers. There's plan in the upstream kernel to have those tied to a user namespace, which means that in most cases you won't run out anymore.
@stgraber I've updated with the following key-values:
I'll test it over the next couple days
In the meanwhile, does LXD have an official production server configuration best practices for things like this?