-
Notifications
You must be signed in to change notification settings - Fork 433
fix(storage): Increase AsyncWriter default MinLwmValue to avoid frequent flushes #15552
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
fix(storage): Increase AsyncWriter default MinLwmValue to avoid frequent flushes #15552
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #15552 +/- ##
=======================================
Coverage 93.04% 93.04%
=======================================
Files 2408 2408
Lines 220145 220145
=======================================
Hits 204829 204829
Misses 15316 15316 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
scotthart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scotthart reviewed 1 of 1 files at r1, 3 of 3 files at r6, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @shubham-up-47)
The AsyncWriter was using small values of LWM (256 KiB) and HWM (512 KiB). This caused the writer to flush data far too frequently, creating a bottleneck,
This PR increases the default MinLwmValue from 256 KiB to 16 MiB which significantly reduce the number of flush operations, allowing the AsyncWriter to batch more data and achieve much higher throughput. The new default is chosen based on Nokoro test results which demonstrated optimal performance at 16 MiB,
This change is