-
Notifications
You must be signed in to change notification settings - Fork 180
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
Enormous amount of TIME_WAIT connections with non-buffered (direct) output #237
Comments
fluent-plugin-kafka uses ruby-kafka library internally so it depends on ruby-kafka's setting. |
with buffered connection it doesn't happen in such scale, but still handles connection closure in the wrong way. With buffered output there is a problem of buffer flush, as describes in here: I am trying to understand what configuration is most relevant for the use case, when I don't need to handle 100% messages and can accept drops, but without building up a buffer trail (fluentd not being able to handle buffer flushes and starts growing up the buffer) not bunch of TCP_WAITS. Can u advise? |
What the advise do you want? |
Ok, I've tested out both buffered and non buffered options. To my surprise it had mostly the same result... For the buffered output I used this configuration:
It still falls to the same problem:
I've gone deeper and inspected traffic... What makes it even more interesting, is that doing all the same with just ruby-kafka I could not replicate the issue. |
just for reference. old one kafka_buffered worked just fine! |
Interesting. out_kafka2 and out_kafka_buffered uses same approches and behaviour should be same. |
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
I am using this configuration:
And with this I do have a lot of TIME_WAIT connections to kafka node:
What could be the cause of fluentd keeping those connections alive until timeout? As fas as I've managed to debug fluentd is not reusing any of established connection in this mode as well.... With this is produces unreasonable load on network devices.
The text was updated successfully, but these errors were encountered: