KAZOO-801: add heuristic to compaction #20

Merged
merged 1 commit into from Apr 8, 2013

Projects

None yet

2 participants

@jamesaimonetti
Member

Use two thresholds, ratio threshold (disk/data > 1.5) and min_data_size threshold (1MB), when deciding whether to compact a db or not. Both thresholds are in the system_config db.

These thresholds should only apply to jobs related to auto-compaction or node compaction. If you ask for a specific DB to be compacted, the heuristic should be disabled for that job.

@jamesaimonetti jamesaimonetti KAZOO-801: add ratio threshold (disk/data > 1.5) and min_data_size th…
…reshold (1MB) when deciding whether to compact a db or not
6c962ad
@k-anderson k-anderson merged commit 6c962ad into master Apr 8, 2013
@k-anderson k-anderson deleted the KAZOO-801 branch Jun 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment