diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2020-03-28 10:02:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-28 10:02:11 +0100 |
commit | a4af0c512ae7a2f1c872e3ae93f63c987f3b5b39 (patch) | |
tree | bd85de0ded2005fec3aae2576eae31e146c574c0 | |
parent | b9040088a05d54e43fee74c45d868d723e4c0e49 (diff) | |
parent | 36b801fcbfaf5cb28c777a4a9ea03261cb4cd79e (diff) |
Merge pull request #12749 from vespa-engine/hmusum/avoid-warmup-lockstep-with-tick
Reduce warmup time with one second to avoid lockstep with tick
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java index 01f602d1a57..c4966b69acb 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java @@ -52,7 +52,8 @@ public class NodeAgentImpl implements NodeAgent { private static final long BYTES_IN_GB = 1_000_000_000L; // Container is started with uncapped CPU and is kept that way until the first successful health check + this duration - private static final Duration DEFAULT_WARM_UP_DURATION = Duration.ofMinutes(1); + // Subtract 1 second to avoid warmup coming in lockstep with tick time and always end up using an extra tick when there are just a few ms left + private static final Duration DEFAULT_WARM_UP_DURATION = Duration.ofMinutes(1).minus(Duration.ofSeconds(1)); private static final Logger logger = Logger.getLogger(NodeAgentImpl.class.getName()); |