-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault leaking file descriptors in Standby Mode #9276
Comments
Hi @pierresouchay, This looks like a custom build/fork of Vault. Can you reproduce this with one of our binaries? |
@ncabatoff We are still investigating, we will keep you posted |
I wonder if this is related to #9383? |
@ncabatoff Indeed that's possible we are using plugins! |
@ncabatoff @pierresouchay I ran my reproducer locally and this does seem to be the case. After each
The easiest way to reproduce it for me was to run with TRACE logging, an external authentication plugin and this patch to vault:
I used that fail condition to test a bunch of cases. With this i just |
Further evidence: |
@ncabatoff yes, same here |
@ncabatoff The explanation from @sorindumitru looks very plausible (see #9276 (comment) ) |
Nope, we already did. There was a CLA snafu so the fix PR was resubmitted as #9557. Should be in 1.5.1. I guess I'll close this issue, as we agree this should be the fix. |
Describe the bug
In standby mode, Vault is leaking descriptors (while the leader is fine)
This happens only in one of our clusters, but vault is leaking around 10 fd/s until it reaches its limit (16k).
The file descriptors are not shown with
ss
command but can be shown withlsof -U vault
:99% of them are showing "protocol: TCP":
To Reproduce
Until unsealed, no problem, but when unsealling the vault, it starts leaking FDs.
Expected behavior
A clear and concise description of what you expected to happen.
Environment:
Vau
Vault server configuration file(s):
Looks a bit similar to #3633 and #3244
The text was updated successfully, but these errors were encountered: