diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-11-20 18:01:37 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-11-20 18:01:37 +0100 |
commit | ac865516d97213b22d8150447e32016e19529b96 (patch) | |
tree | 25ce0160601d1d9057d6a2224ab86ff783f2c9de /node-repository | |
parent | d9e8368c70ed226089264c91b274240545940974 (diff) |
Don't account for bcp and organic traffic outside prod
Diffstat (limited to 'node-repository')
-rw-r--r-- | node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java | 2 |
1 files changed, 2 insertions, 0 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 618aa5880f9..80ff22eae91 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 @@ -232,6 +232,7 @@ public class ClusterModel { /** Returns the headroom for growth during organic traffic growth as a multiple of current resources. */ private double growthRateHeadroom() { + if ( ! zone.environment().isProduction()) return 1; double growthRateHeadroom = 1 + maxQueryGrowthRate() * scalingDuration().toMinutes(); // Cap headroom at 10% above the historical observed peak if (queryFractionOfMax() != 0) @@ -244,6 +245,7 @@ public class ClusterModel { * as a multiple of current resources. */ private double trafficShiftHeadroom() { + if ( ! zone.environment().isProduction()) return 1; double trafficShiftHeadroom; if (application.status().maxReadShare() == 0) // No traffic fraction data trafficShiftHeadroom = 2.0; // assume we currently get half of the global share of traffic |