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

Avoid parallel reroutes in DiskThresholdMonitor #43381

Commits on Jun 19, 2019

  1. Avoid parallel reroutes in DiskThresholdMonitor

    Today the `DiskThresholdMonitor` limits the frequency with which it submits
    reroute tasks, but it might still submit these tasks faster than the master can
    process them if, for instance, each reroute takes over 60 seconds. This causes
    a problem since the reroute task runs with priority `IMMEDIATE` and is always
    scheduled when there is a node over the high watermark, so this can starve any
    other pending tasks on the master.
    
    This change avoids further updates from the monitor while its last task(s) are
    still in progress, and it measures the time of each update from the completion
    time of the reroute task rather than its start time, to allow a larger window
    for other tasks to run.
    
    Fixes elastic#40174
    DaveCTurner committed Jun 19, 2019
    Copy the full SHA
    7d8ce43 View commit details
    Browse the repository at this point in the history
  2. AtomicLong

    DaveCTurner committed Jun 19, 2019
    Copy the full SHA
    5ea085c View commit details
    Browse the repository at this point in the history
  3. Off-by-one

    DaveCTurner committed Jun 19, 2019
    Copy the full SHA
    a74bde6 View commit details
    Browse the repository at this point in the history
  4. Extract var

    DaveCTurner committed Jun 19, 2019
    Copy the full SHA
    81004c3 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    7cb5915 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2019

  1. Copy the full SHA
    f385bac View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3d261d4 View commit details
    Browse the repository at this point in the history
  3. Inject reroute action

    DaveCTurner committed Jun 26, 2019
    Copy the full SHA
    4de4ab6 View commit details
    Browse the repository at this point in the history
  4. Assert not-null

    DaveCTurner committed Jun 26, 2019
    Copy the full SHA
    c1d6ee0 View commit details
    Browse the repository at this point in the history
  5. Rename

    DaveCTurner committed Jun 26, 2019
    Copy the full SHA
    7969284 View commit details
    Browse the repository at this point in the history
  6. Log exceptions on error

    DaveCTurner committed Jun 26, 2019
    Copy the full SHA
    ce5946b View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2019

  1. Copy the full SHA
    9387277 View commit details
    Browse the repository at this point in the history