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

in_tail: ingestion interruption fix #7815

Merged
merged 3 commits into from
Aug 31, 2023

Conversation

leonardo-albertovich
Copy link
Collaborator

@leonardo-albertovich leonardo-albertovich commented Aug 9, 2023

This PR addresses two individual issues :

  1. When ignore_older is set and a file that was deemed viable is being ingested (while no one is appending data to it) fluent-bit will drop the file as soon as the modification time exceeds the limit imposed by ignore_older.
  2. When a file is being ingested in event mode yet it's not being written to, the ingestion rate is severely limited by the progress timer frequency.

It's important to keep in mind that point number one has been a long standing default behavior which means changing it could cause disruptions so please, request the change if we need to add a new option to opt-out of the old behavior.


This PR fixes the overtly restrictive file metadata query which if I
remember correctly was added to mitigate a performance issue.

Signed-off-by: Leonardo Alminana <[email protected]>
…ested

This was feature was meant to ignore files whoses modification time
exceeds the limit specified in ignore_older, however, when a file is
deemed acceptable it should be discarded if the system took more than
expected to ingest it.

Signed-off-by: Leonardo Alminana <[email protected]>
…ector

A side effect of the progress check callback directly ingesting data is
that the ingestion rate is capped to the timer frequency multipled by
the buffer size.

The right approach is to signal the event based pending collector so
it continuously runs until the file is completely ingested (which is
handled by the controlled consumption of the signal from the channel).

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

edsiper commented Aug 29, 2023

@leonardo-albertovich should we merge this for the active 2.1 or for next 2.2 series in late October ?

@lecaros any initial lights that this PR fixes #7633 ?

@edsiper edsiper added this to the Fluent Bit v2.1.9 milestone Aug 29, 2023
@leonardo-albertovich
Copy link
Collaborator Author

I'd say 2.1

@edsiper edsiper merged commit 0eaa41b into master Aug 31, 2023
@edsiper edsiper deleted the leonardo-master-tail-ingestion-interruption-fix branch August 31, 2023 19:05
@lecaros
Copy link
Contributor

lecaros commented Sep 1, 2023

@edsiper The user didn't confirm, but the behavior is pretty much the same.

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

Successfully merging this pull request may close these issues.

4 participants