Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compaction: Add snooze_period_ms for finer tuning
We are experiencing an issue similar to #1579, partly because we have dozens of thousands of databases. On our servers: - `snooze_period = 0` leads to a significant CPU load, - `snooze_period = 1` is too long for compaction to finish within 20 hours (after 20 hours, compaction is stopped to allow other CPU-intensive processes to run, and when compaction restarts, it does not pick up where it left 4 hours earlier -- by the way proposal at #1775 would be really great to fix that!) This commit introduces a new option `snooze_period_ms` (measured in milliseconds), and deprecates `snooze_period` while still supporting it for obvious legacy reasons.
- Loading branch information
1 parent
25838d0
commit c3eb760
Showing
3 changed files
with
71 additions
and
7 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