Skip to content
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

tcp sessions #234

Closed
eskornev opened this issue Apr 12, 2017 · 3 comments
Closed

tcp sessions #234

eskornev opened this issue Apr 12, 2017 · 3 comments
Assignees
Labels

Comments

@eskornev
Copy link

Hello, I can see that fluent-bit (v0.11.2) constantly originates new tcp sessions to fluentd server.
For about one day it creates more than 2000 sessions:

root@fluentbit-4zg6h:/# netstat -anpet |grep 24224 |wc -l
2186

It works in Kubernetes, config is like this:

[SERVICE]
    Flush        1
    Daemon       Off
    Log_Level    debug
    Log_File     /fluent-bit/log/fluent-bit.log
    Parsers_File parsers.conf

[INPUT]
    Name tail
    Path /mnt/*.log
    Exclude_Path /mnt/fluentbit*
    DB /tmp/files.db
    Parser docker
    Tag kube.*
    Mem_Buf_Limit 5MB

[FILTER]
    Name   kubernetes
    Match kube.*

[OUTPUT]
    Match *
    Name forward
    Host 192.168.242.110
    Port 24224

How can I eliminate such situation?

@edsiper edsiper self-assigned this Apr 12, 2017
@edsiper edsiper added the bug label Apr 12, 2017
@edsiper
Copy link
Member

edsiper commented Apr 12, 2017

thanks for reporting this problem, it was introduced by a silly mistake on my end.

I am pushing a new hot-fix release in a couple of minutes.

edsiper added a commit that referenced this issue Apr 12, 2017
In recent changes, the function call to release the upstream connection
when the data is flushed was commented, for hence the connection is leaked.

This patch fix the problem releasing the connection properly.

Signed-off-by: Eduardo Silva <[email protected]>
@edsiper
Copy link
Member

edsiper commented Apr 12, 2017

FYI: v0.11.3 have been just released.

  • Docker images updated, please use tag 0.11.3
  • Tarballs available on fluentbit.io
  • RPM/Deb packages are still being build.

thanks again for reporting this issue.

@eskornev
Copy link
Author

Superb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants