-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
consul reload - watch configs leaks file descriptors #4010
Comments
@toomasp Does the fd count ever drop back down to the pre-reload value given enough time? |
@mkeeler It seems to depend on the watches configured. One of my coworkers is currently investigating to determine which kind of watches exactly cause the FD limit not to decrease and what is special about them. Will get back to you once we know more. Otherwise yes, with some watches, it returns to the pre-reload value given enough time. |
The coworker here :) I have bisected the issue to commit 10e0be6 The following minimal config reproduces the issue in CentOS 7 and openSUSE Tumbleweed running official linux-amd64 Consul binary. Configuration:
|
the issue is still present in 1.0.7 and 1.1.0 |
@mihkelader Does this still "leak" fds with master. I think it may not have been leaking but rather was erroneously duplicating the watches. For me at least with a build of master the problem seems to be resolved. Please let me know if its fixed for you too and I will close this out. |
Yes, the problem is gone now. We no longer run out of file descriptors when running Consul built from master. |
@mihkelader Glad to hear that its fixed for you. |
Duplicating #3018 as requested
Description of the Issue (and unexpected/desired result)
Reproduction steps
Have some watches and do a consul reload
consul version
for both Client and ServerClient:
Consul v1.0.6
Server:
Consul v1.0.6
consul info
for both Client and ServerClient:
Server:
Operating system and Environment details
Log Fragments
This keeps happening growing on every reload.. but, if you wait for a while ( over a minute or so ) then it goes back down.
The text was updated successfully, but these errors were encountered: