feat(server): enable write-stall backpressure by default (--write-stall-l0 24)#95
Merged
Conversation
write_stall_l0 defaulted to 0 (off), so a writer could outrun compaction and let L0 SST count grow unbounded, inflating read amplification and eventually stalling reads. Default it to 24 (3x the reactive-compaction trigger of 8): invisible under normal load, applies the soft --write-stall-delay only under sustained write overload. Set --write-stall-l0 0 to restore the old unbounded behaviour. Embedded AppState and explicit test configs are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backpressure was off by default, letting a writer outrun compaction and grow L0 unbounded (read amplification, eventual read stalls). Default --write-stall-l0 to 24 (3x the reactive-compaction trigger): invisible under normal load, only bites under sustained overload. Opt out with --write-stall-l0 0. Behavior change, noted in CHANGELOG. Server tests green, fmt clean.