Skip to content

Commit

Permalink
Merge pull request #21158 from vespa-engine/mpolden/skip-reserved
Browse files Browse the repository at this point in the history
Do not offer node moves to reserved hosts
  • Loading branch information
bratseth authored Feb 12, 2022
2 parents 77954df + fb9366c commit a24d92d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ protected final MOVE findBestMove(NodesAndHosts<? extends NodeList> allNodes) {
if (deployedRecently(applicationId)) continue;
for (HostWithResources toHost : hostResources) {
if (toHost.node.hostname().equals(node.parentHostname().get())) continue;
if (toHost.node.reservedTo().isPresent() &&
!toHost.node.reservedTo().get().equals(applicationId.tenant())) continue; // Reserved to a different tenant
if (spares.contains(toHost.node)) continue; // Do not offer spares as a valid move as they are reserved for replacement of failed nodes
if ( ! toHost.hasCapacity(node.resources())) continue;

Expand Down

0 comments on commit a24d92d

Please sign in to comment.