Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGP Agent is leaking inotify watcher fds #2

Closed
mbaldessari opened this issue Mar 17, 2021 · 1 comment
Closed

BGP Agent is leaking inotify watcher fds #2

mbaldessari opened this issue Mar 17, 2021 · 1 comment

Comments

@mbaldessari
Copy link

So after leaving the agent running a few hours we had podman dying on us with the following error:
Error: error creating libpod runtime: error configuring CNI network plugin: could not create new watcher too many open files

The problem is that bgp-agent used up all the inotify watchers on the system:
find /proc/*/fd -lname anon_inode:inotify |wc -l

Showed that ~1020 something watchers were being used by the bgp agent container:
root 163246 43.2 21.1 38132540 3425504 ? Ssl Mar16 463:00 _ /usr/bin/python3 /usr/local/bin/bgp-agent

Default numbers:
[root@ctrl-2-0 ~]# cat /proc/sys/fs/inotify/max_*
16384
1024
8192

@luis5tb
Copy link
Owner

luis5tb commented Mar 22, 2021

luis5tb added a commit that referenced this issue Mar 22, 2021
@luis5tb luis5tb closed this as completed Mar 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants