Skip to content

Compression stats and commitlog compression function#4708

Open
kim wants to merge 5 commits intomasterfrom
kim/compression-stats
Open

Compression stats and commitlog compression function#4708
kim wants to merge 5 commits intomasterfrom
kim/compression-stats

Conversation

@kim
Copy link
Copy Markdown
Contributor

@kim kim commented Mar 25, 2026

Adds a way to pass a "closure" when compressing a commitlog segment, such that the source and destination are polymorphic. This allows to have them wrapped externally, which is used to apply bandwidth limiting where necessary.

Also return bytes in + bytes out stats from the compressor.

Expected complexity level and risk

1

Testing

Elsewhere.

Namely, bytes in + bytes out.
Apart from metrics, we want to use this for throttling I/O when
necessary.
@kim kim requested review from gefjon and jsdt March 25, 2026 16:39
@kim kim changed the title Collect stats when compressing Compression stats and commitlog compression function Mar 30, 2026
@kim kim force-pushed the kim/compression-stats branch from 62d9203 to 4a97348 Compare March 30, 2026 08:46
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