diff options
author | Jon Bratseth <bratseth@gmail.com> | 2023-02-20 13:18:30 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2023-02-20 13:18:30 +0100 |
commit | 3469c30677bc5f66b09dbb24426db2a33c0f4fbe (patch) | |
tree | 4457fe68a74e8196e412bd52c3027177950fe4ba | |
parent | 2305c5802f887edafd1a1351f6ef797d0509b416 (diff) |
Require a little more than minimal data to conclude
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java index a30c9b588c2..264664f91b2 100644 --- a/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java +++ b/node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java @@ -119,7 +119,7 @@ public class ClusterModel { /** Returns the relative load adjustment that should be made to this cluster given available measurements. */ public Load loadAdjustment() { - if (nodeTimeseries().isEmpty()) return Load.one(); + if (nodeTimeseries().measurementsPerNode() < 0.5) return Load.one(); // Don't change based on very little data Load adjustment = peakLoad().divide(idealLoad()); if (! safeToScaleDown()) adjustment = adjustment.map(v -> v < 1 ? 1 : v); |