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

tail plugin read file don't keep offset #689

Closed
Barbazoo opened this issue Jul 20, 2018 · 3 comments
Closed

tail plugin read file don't keep offset #689

Barbazoo opened this issue Jul 20, 2018 · 3 comments
Assignees

Comments

@Barbazoo
Copy link

Is your feature request related to a problem? Please describe.

Since the fluent-bit tail plugin reads the file, it will read from the file header.I used fluent-bit to configure a db parameter to record the offset of the file. Now because of the large amount of log files, the io operation of the db file reaches 40 times per second, causing the io wait of the cpu to be relatively high. What parameters can control the fluent-bit read file only reads the current file append similar to linux's tail -f mode , so I can directly remove the db file to reduce the cpu io wait time, thanks!

Describe the solution you'd like

Describe alternatives you've considered

Additional context

@edsiper
Copy link
Member

edsiper commented Jul 20, 2018

The database file is backed by SQLite, in order to control the sync mode and it penalties, please refer to the following links:

Basically you can choose between: Extra, Full, Normal, Off

Now about 'tail -f' real mode is something pending to be implemented shortly.

@Barbazoo
Copy link
Author

The version I am using is 0.12. I just found a bug fix.
Https://github.com/fluent/fluent-bit/issues/474
In fact, what I want is this effect. By default, I only read and write from the end. I am going to try it up to 0.13.

@edsiper
Copy link
Member

edsiper commented Jul 23, 2018

Closing this one as a dup of #474

@edsiper edsiper closed this as completed Jul 23, 2018
rawahars pushed a commit to rawahars/fluent-bit that referenced this issue Oct 24, 2022
Signed-off-by: Takahiro Yamashita <[email protected]>

Signed-off-by: Takahiro Yamashita <[email protected]>
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

2 participants