summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2023-10-10 16:06:44 +0200
committerjonmv <venstad@gmail.com>2023-10-10 16:06:44 +0200
commit26191239bb41ebfbada0cedffcb1ce53a06d9d9d (patch)
treee3724f121f92cd9665d6cc77d531fd94319a7419
parent50ff7486f25d1bb321534c57af805580fbd52cca (diff)
Resume while allowing CPU boost, for first-time deployments
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java3
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 47b868f5ee3..c3ec9e91343 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
@@ -526,7 +526,8 @@ public class NodeAgentImpl implements NodeAgent {
firstSuccessfulHealthCheckInstant = Optional.of(timer.currentTime());
Duration timeLeft = Duration.between(timer.currentTime(), firstSuccessfulHealthCheckInstant.get().plus(warmUpDuration(context)));
- if (!container.get().resources().equalsCpu(getContainerResources(context)))
+ if ( ! container.get().resources().equalsCpu(getContainerResources(context))
+ && context.node().currentDockerImage().isPresent()) // Immediately resume first-time deployments, when healthy.
throw ConvergenceException.ofTransient("Refusing to resume until warm up period ends (" +
(timeLeft.isNegative() ? "next tick" : "in " + timeLeft) + ")");
}