aboutsummaryrefslogtreecommitdiffstats
path: root/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2023-02-18 14:25:23 +0100
committerJon Bratseth <bratseth@gmail.com>2023-02-18 14:25:23 +0100
commit370b8742744344fc38dabff4ae7bae65c9316dfc (patch)
tree55282fdee06ee14420de79aa12ef02093116312b /node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java
parent21e0c4913dd0bc88dfec3016d4552f57fc0e7c4b (diff)
Predict best case overhead during autoscaling
Predicting worst case has the unavoidable consequence that we will conclude we cannot fulfill requested resources in the case where there are no resource ranges (only node count ranges), or where they are too narrow, and thus refrain from scaling down when we should. Instead, mostly predict the best case and let the ideal < 1 headroom absorb the deficiency in what we are actually allocated.
Diffstat (limited to 'node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java')
-rw-r--r--node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java
index 7c75b07eb47..dcdf79a3951 100644
--- a/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java
+++ b/node-repository/src/test/java/com/yahoo/vespa/hosted/provision/autoscale/AutoscalingTester.java
@@ -234,12 +234,12 @@ class AutoscalingTester {
}
@Override
- public NodeResources requestToReal(NodeResources resources, boolean exclusive) {
+ public NodeResources requestToReal(NodeResources resources, boolean exclusive, boolean bestCase) {
return resources.withMemoryGb(resources.memoryGb());
}
@Override
- public NodeResources realToRequest(NodeResources resources, boolean exclusive) {
+ public NodeResources realToRequest(NodeResources resources, boolean exclusive, boolean bestCase) {
return resources.withMemoryGb(resources.memoryGb());
}