Skip to content

Conversation

@ridwanmsharif
Copy link
Contributor

Fluent Bit has this option available in the tail input plugin. From looking at the upstream code, it looks like should help to reduce the number of syscalls on every commit to the DB but at the price of locking the access to the database file to third party programs. But for us, that trade-off seems okay?

We should soak test/performance test this to see if we get any visible benefit.

@ridwanmsharif
Copy link
Contributor Author

ridwanmsharif commented Nov 25, 2022

Please forgive my legend labeling. true refers to the DB.Locking being enabled and false is the opposite.

Looks like we get some better memory utilization:
image

Marginal/negligible improvement of CPU utilization:
image

And virtually no impact on throughput:
image

@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/db-locking branch 2 times, most recently from 33bafba to e8d146b Compare November 29, 2022 21:47
Fluent Bit has this option available in the `tail` input plugin.
From looking at the upstream code, it looks like should help
to reduce the number of syscalls on every commit to the DB
but at the price of locking the access to the database file to
third party programs. But for us, that trade-off seems okay?

We should soak tesk/performance test this to see if we get any visible
benefit.

Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/db-locking branch from e8d146b to 6e5243b Compare November 30, 2022 21:10
@ridwanmsharif ridwanmsharif merged commit 15b4af2 into master Dec 1, 2022
@ridwanmsharif ridwanmsharif deleted the ridwanmsharif/db-locking branch December 1, 2022 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants