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

Fluent Bit 3.1.9 keeps old FIFO pipe files open and creates new ones after each hot reload #9562

Open
mpuum opened this issue Nov 6, 2024 · 0 comments

Comments

@mpuum
Copy link

mpuum commented Nov 6, 2024

Bug Report

Describe the bug

When using tail input plugin and hot reload with SIGHUP, Fluent Bit clears monitored files based on Ignore_Older config but keeps old pipe FIFO files open and creates new ones after each hot reload. This causes too many files open issue after while, depending reload frequency.

To Reproduce

  • Key configuration parameters:

    [SERVICE]
    Hot_Reload On

    [INPUT]
    name tail
    Ignore_Older 1h
    path /var/log/logfile*.log
    read_from_head true
    DB /opt/fluent-bit/DB.db

  • Steps to reproduce the problem:

    • Create new log files
    • Use SIGHUP to reload config several times
    • Observe with lsof increased number of open FIFO files after each reload
# ulimit -n
1024

Nov  1 00:00:01 server-1 fluent-bit[9694]: pipe: Too many open files
Nov  1 00:00:01 server-1 fluent-bit[9694]: [2024/11/01 00:00:01] [error] [reload] creating flb context is failed. Reloading is halted

# lsof -p 9694 | wc -l
1068

# lsof -p 9694 | grep pipe | wc -l
998

# lsof -p 9694 | grep inode | wc -l
18

Your Environment

  • Version used: fluent-bit-3.1.9-1.x86_64.rpm
  • Operating System and version: RHEL 8.10

Additional context
Noticed with workaround used for the issue #9021 "Broken "Ignore Older" setting in in_tail plugin"

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

No branches or pull requests

1 participant