mirror of https://git.envs.net/envs/ops.git
14 lines
797 B
Plaintext
14 lines
797 B
Plaintext
# Defines the maximum number of inotify listeners.
|
|
# By default, this value is 128, which is quickly exhausted when using
|
|
# systemd-based LXC containers (15 containers are enough).
|
|
# When the limit is reached, systemd becomes mostly unusable, throwing
|
|
# "Too many open files" all around (both on the host and in containers).
|
|
# See https://kdecherf.com/blog/2015/09/12/systemd-and-the-fd-exhaustion/
|
|
# Increase the user inotify instance limit to allow for about
|
|
# 100 containers to run before the limit is hit again
|
|
|
|
# alias maxfdio='find /proc/*/fd/* -type l -lname anon_inode:inotify -print 2>/dev/null | cut -d/ -f3 |xargs -I {} -- ps --no-headers -o %U -p {} | sort | uniq -c | sort -nr'
|
|
# systemd and the "fd" exhaustion - too many files open (def.: 128)
|
|
|
|
fs.inotify.max_user_instances = 1024
|