-
Notifications
You must be signed in to change notification settings - Fork 442
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
feat(pageserver): support key range for manual compaction trigger #9723
base: main
Are you sure you want to change the base?
Conversation
5427 tests run: 5184 passed, 0 failed, 243 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
71b20cf at 2024-11-14T21:31:53.291Z :recycle: |
6aa7515
to
27e70aa
Compare
Signed-off-by: Alex Chi Z <[email protected]>
Signed-off-by: Alex Chi Z <[email protected]>
Signed-off-by: Alex Chi Z <[email protected]>
27e70aa
to
59c42fa
Compare
Signed-off-by: Alex Chi Z <[email protected]>
Signed-off-by: Alex Chi Z <[email protected]>
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.
Occupying the entire request body for just the CompactRange
will make it harder to extend the endpoint down the line.
I think it shouldn't be particularly hard/time consuming to move all the query fields (force_l0_compaction
, force_repartition
etc) into a struct TimelineCompactRequest
.
(The reason why it shouldn't be particularly time consuming is that the the only place where we're constructing the request is in the ps_http.timeline_compact()
implementation.
Please do bit that bullet here, much appreciated!
Other than that, this looks good. Approving so you can merge this before your weekend starts
Problem
part of #9114, we want to be able to run partial gc-compaction in tests. In the future, we can also expand this functionality to legacy compaction, so that we can trigger compaction for a specific key range.
Summary of changes
CompactOptions
.