-
-
Notifications
You must be signed in to change notification settings - Fork 96
Improve handling of open file descriptors #3784
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind adding a changelog entry?
It'd be great if we can reuse logic from os.cpp
instead of hand-rolling it again. Otherwise this good.
92aa0d1
to
8311e2e
Compare
4edfa00
to
fb62682
Compare
8311e2e
to
f4561ab
Compare
e2bf523
to
9ad0b58
Compare
4266b29
to
1b43460
Compare
9ad0b58
to
09b07c5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. This doubles down on our effort to centralize OS-specific aspects.
Just minor nits in the review comments.
4074359
to
311a45c
Compare
Attempt to improve the behavior of nodes that are running into the maximum number of open files: * Increase the upper limit imposed by our systemd unit files to 64Ki. We avoid going all the way to `LimitNOFILE=infinity`, so that in the case of a file descriptor leak the node will fail at some point rather than the system hitting the maximum number of global open files. * Add monitoring of open file descriptors as a health metric so that leaks can be detected by looking at the rate of change over time.
09b07c5
to
82dd87b
Compare
Attempt to improve the behavior of nodes that are running into the maximum number of open files: