summaryrefslogtreecommitdiffstats
path: root/node-repository
diff options
context:
space:
mode:
authorAndreas Eriksen <andreer@verizonmedia.com>2021-02-02 11:39:13 +0100
committerGitHub <noreply@github.com>2021-02-02 11:39:13 +0100
commit90869d93e48b63a4d784a3079762e20da37cdb3b (patch)
tree4bb95a909c4943a777d4694a0e1c877fdffdbcde /node-repository
parent7987453f0142e510292bb521b55234bbbccb1850 (diff)
reduce upper bound to speed up capacity check
tested on real data from zones which are now timing out - this should be enough to get it working again
Diffstat (limited to 'node-repository')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java
index 6094b497fff..46ffe14d4e2 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/maintenance/CapacityChecker.java
@@ -161,7 +161,7 @@ public class CapacityChecker {
int timesHostCanBeRemoved = 0;
Optional<Node> unallocatedNode;
- while (timesHostCanBeRemoved < 1000) { // Arbitrary upper bound
+ while (timesHostCanBeRemoved < 100) { // Arbitrary upper bound
unallocatedNode = tryAllocateNodes(nodeChildren.get(host), hosts, resourceMap, containedAllocations);
if (unallocatedNode.isEmpty()) {
timesHostCanBeRemoved++;