-
Notifications
You must be signed in to change notification settings - Fork 466
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compaction: elision-only compactions for tables with only range keys
Currently, a table is marked as eligible for elision-only compaction by the `elisionOnlyAnnotator` under the following circumstances: - the table's range deletion estimate is greater than or equal to 10% of the total table size, OR - the number of deletions is greater than or equal to 10% of the table's total point key entries. If a table contains only range keys, the second predicate is true (given that `0 >= 0`), scheduling an elision-only compaction. Howeve, if the table contains only range key-sets, such keys cannot be elided, and the compaction picker will continue to schedule the table for elision, without effect. This can tie up compaction slots. While it is _technically_ possible that a table with containing exclusively range keys, but no range key sets _could_ be eligible for an elision-only compaction (i.e. if there are no spans underneath, or snapshots preventing the elision, etc.), the utility of such a compaction is minimal, given that a compaction into a table containing a few range keys would be inexpensive. Tweak the elision-only compaction heuristics to skip elision-only compactions of tables that contain exclusively range keys.
- Loading branch information
Showing
4 changed files
with
55 additions
and
1 deletion.
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