forked from cockroachdb/pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We improve the delete pacer to be able to scale delete pacing instead of making an on/off decision. The new pacer uses low/high thresholds for various factors; on one side of the threshold we pace at the target rate and on the other side we don't throttle at all. In-between we scale the wait time per byte linearly. Thresholds are as follows: | | Start increasing rate at | Disable pacing at | | ---------------------------- | ------------------------ | ----------------- | | Free space | 32GB | 16GB | | Obsolete to live bytes ratio | 5% | 20% | | Obsolete bytes (*new*) | 1GB | 10GB | Fixes cockroachdb#2662.
- Loading branch information
1 parent
c0b26f2
commit 8b43e7b
Showing
3 changed files
with
140 additions
and
68 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