Skip to content

Compression stats and commitlog compression function#4708

Merged
kim merged 11 commits into
masterfrom
kim/compression-stats
May 8, 2026
Merged

Compression stats and commitlog compression function#4708
kim merged 11 commits into
masterfrom
kim/compression-stats

Conversation

@kim

@kim kim commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

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

@cloutiertyler cloutiertyler left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No objection to this.

@kim kim enabled auto-merge April 29, 2026 06:18
@kim kim added this pull request to the merge queue May 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 8, 2026
@kim kim added this pull request to the merge queue May 8, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks May 8, 2026
@kim kim added this pull request to the merge queue May 8, 2026
Merged via the queue into master with commit af50bf5 May 8, 2026
73 of 75 checks passed
@kim kim deleted the kim/compression-stats branch May 8, 2026 13:27
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.

2 participants