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

scheduler: fix job update placement on prev node penalized #6781

Merged
merged 1 commit into from
Dec 3, 2019

Commits on Dec 3, 2019

  1. scheduler: fix job update placement on prev node penalized

    Fixes #5856
    
    When the scheduler looks for a placement for an allocation that's
    replacing another allocation, it's supposed to penalize the previous
    node if the allocation had been rescheduled or failed. But we're
    currently always penalizing the node, which leads to unnecessary
    migrations on job update.
    
    This commit leaves in place the existing behavior where if the
    previous alloc was itself rescheduled, its previous nodes are also
    penalized. This is conservative but the right behavior especially on
    larger clusters where a group of hosts might be having correlated
    trouble (like an AZ failure).
    
    Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
    tgross and schmichael committed Dec 3, 2019
    Configuration menu
    Copy the full SHA
    e82244c View commit details
    Browse the repository at this point in the history