-
Notifications
You must be signed in to change notification settings - Fork 151
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
"too many open files" possible when using spooling? #480
Comments
Hypothesisusage of spooling in TCP routes (or reconnecting connections) leaks (opens many and doesn't close) many file descriptors. Investigation approach
LearningsDiagram of where FD's are created and owned
Connections
(*) these mechanism rely on channels messaging between different routines. If goroutines get stuck, processing may not properly advance. This is best diagnosed with goroutine dumps. Spool/diskqueue
So then, looking at NewSpool()... How to avoid in the future?see diagonstics instructions added in #481 |
The two ways I see to instrument open fd's are:
1 is expensive, 2 is verbose and possibly inaccurate. I think i will scrap that idea for now. |
A customer ran into "too many open files" when using basic grafanaNet route and a tcp route with spooling.
TODO:
The text was updated successfully, but these errors were encountered: