-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: implement a queue for suggested compactions
Clear range commands now come with an attendant suggested range compaction hint. Any suggested compactions generated during command execution are now sent via replicated result data to each replica and stored in a store-local queue of pending compaction suggestions. A new compactor goroutine runs periodically to process pending suggestions. If more than an absolute number of bytes is reclaimable, or if the bytes to reclaim exceed a threshold fraction of the total used bytes, we'll go ahead and compact the suggested range. Suggested compactions are allowed to remain in the queue for at most 24 hours, after which if they haven't been aggregated into a compact-able key span, they'll be discarded, and left to RocksDB's background compaction processing. Release note (UX improvement): When tables are dropped, the space will be reclaimed in a more timely fashion.
- Loading branch information
1 parent
90078d2
commit e73fd22
Showing
19 changed files
with
2,199 additions
and
198 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.