aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
diff options
context:
space:
mode:
authorValerij Fredriksen <freva@users.noreply.github.com>2022-08-03 18:17:57 +0200
committerGitHub <noreply@github.com>2022-08-03 18:17:57 +0200
commit8844e681bc04385bde449db144e3306529460265 (patch)
tree2b2a97fbcb486454ba06b2a6cc6224433baeba39 /node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
parentfd8261f30845e87b6cc9cb4d09d16e5d2a4f7694 (diff)
parentec4f38324106df044656b4a74fc681d12937f7e3 (diff)
Merge pull request #23574 from vespa-engine/bratseth/autoscale-faster-2v8.29.16
Bratseth/autoscale faster 2
Diffstat (limited to 'node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
index ac072639cfe..7a02fa9eb7e 100644
--- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
+++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/Autoscaler.java
@@ -89,10 +89,8 @@ public class Autoscaler {
" nodes, but require from " + clusterNodes.size());
var currentAllocation = new AllocatableClusterResources(clusterNodes.asList(), nodeRepository);
- var target = ResourceTarget.idealLoad(clusterModel, currentAllocation);
-
Optional<AllocatableClusterResources> bestAllocation =
- allocationOptimizer.findBestAllocation(target, currentAllocation, clusterModel, limits);
+ allocationOptimizer.findBestAllocation(clusterModel.loadAdjustment(), currentAllocation, clusterModel, limits);
if (bestAllocation.isEmpty())
return Advice.dontScale(Status.insufficient, "No allocations are possible within configured limits");