Skip to content

feat(server): enable write-stall backpressure by default (--write-stall-l0 24)#95

Merged
Matiasfons merged 1 commit into
mainfrom
feat/write-stall-default
Jun 10, 2026
Merged

feat(server): enable write-stall backpressure by default (--write-stall-l0 24)#95
Matiasfons merged 1 commit into
mainfrom
feat/write-stall-default

Conversation

@Matiasfons

Copy link
Copy Markdown
Contributor

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.

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.
@Matiasfons Matiasfons merged commit b8d1a19 into main Jun 10, 2026
8 checks passed
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.

1 participant