summaryrefslogtreecommitdiffstats
path: root/node-repository/src/main/java/com
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@vespa.ai>2023-06-13 18:40:35 +0200
committerJon Bratseth <bratseth@vespa.ai>2023-06-13 18:40:35 +0200
commit05d7729175ec107b0f19e8c6c11f04d189768e2a (patch)
tree98f25b4dc4eb74edfeb71c6e7ccba92c1b6cea70 /node-repository/src/main/java/com
parent6f9a74cdc71e36130c907f706293f3f3e33615f8 (diff)
Reduce minimum content scaling duration from 8 to 6h
Diffstat (limited to 'node-repository/src/main/java/com')
-rw-r--r--node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java9
1 files changed, 1 insertions, 8 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 dac9a0f3518..c75a5ca0b26 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
@@ -1,9 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.provision.autoscale;
-import com.yahoo.config.provision.ClusterResources;
import com.yahoo.config.provision.ClusterSpec;
-import com.yahoo.config.provision.Zone;
import com.yahoo.vespa.hosted.provision.Node;
import com.yahoo.vespa.hosted.provision.NodeList;
import com.yahoo.vespa.hosted.provision.NodeRepository;
@@ -14,10 +12,7 @@ import com.yahoo.vespa.hosted.provision.provisioning.CapacityPolicies;
import java.time.Clock;
import java.time.Duration;
import java.time.Instant;
-import java.util.Optional;
import java.util.OptionalDouble;
-import java.util.logging.Level;
-import java.util.logging.Logger;
/**
* A cluster with its associated metrics which allows prediction about its future behavior.
@@ -27,8 +22,6 @@ import java.util.logging.Logger;
*/
public class ClusterModel {
- private static final Logger log = Logger.getLogger(ClusterModel.class.getName());
-
/** Containers typically use more cpu right after generation change, so discard those metrics */
public static final Duration warmupDuration = Duration.ofMinutes(7);
@@ -175,7 +168,7 @@ public class ClusterModel {
}
public static Duration minScalingDuration(ClusterSpec clusterSpec) {
- if (clusterSpec.isStateful()) return Duration.ofHours(8);
+ if (clusterSpec.isStateful()) return Duration.ofHours(6);
return Duration.ofMinutes(5);
}