diff options
author | Martin Polden <mpolden@mpolden.no> | 2021-03-16 16:38:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 16:38:26 +0100 |
commit | 218bb1b3d526ceef46c44086af48448a106de69a (patch) | |
tree | 3d8004eccadfd4d06d23eb901fe947ac0367bc9d /node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java | |
parent | da9bc8db0052a729a4510a13d0c19202c9f846f8 (diff) | |
parent | f5e83d80e8f22449e4bd1e6e4a4d95c8185d303f (diff) |
Merge pull request #16984 from vespa-engine/hakonhall/retire-all-wanttoretire-nodes-with-typenodespec
Retire all wanttoretire nodes with TypeNodeSpec
Diffstat (limited to 'node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java index dc9751debf1..482f0f2e011 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeSpec.java @@ -209,10 +209,8 @@ public interface NodeSpec { @Override public int idealRetiredCount(int acceptedCount, int currentRetiredCount) { - // All nodes marked with wantToRetire get marked as retired just before this function is called, - // the job of this function is to throttle the retired count. If no nodes are marked as retired - // then continue this way, otherwise allow only 1 node to be retired - return Math.min(1, currentRetiredCount); + // All nodes marked with wantToRetire get marked as retired just before this function is called + return currentRetiredCount; } @Override |