Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compaction: Allow snooze_period to be a float #1880

Merged

Commits on Jan 30, 2019

  1. Compaction: Add snooze_period_ms for finer tuning

    We are experiencing an issue similar to apache#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
      apache#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.
    adrienverge committed Jan 30, 2019
    Copy the full SHA
    0447a04 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    ab79f1a View commit details
    Browse the repository at this point in the history