summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonmv <venstad@gmail.com>2022-11-07 11:14:32 +0100
committerjonmv <venstad@gmail.com>2022-11-07 11:14:32 +0100
commite7df174e36cebe262d9102206ff2b1b2ec610869 (patch)
treefdcff31881c9ae0797f9b0835ddc3bd3182089ae
parent6d8bca79a1f600501290593ecd920eca0b237c78 (diff)
Retry less aggressively while waiting for host provisioning
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
index e8c92d3e3f6..e6d793affff 100644
--- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/deployment/InternalStepRunner.java
@@ -248,7 +248,9 @@ public class InternalStepRunner implements StepRunner {
}
case LOAD_BALANCER_NOT_READY, PARENT_HOST_NOT_READY -> {
logger.log(e.message()); // Consider splitting these messages in summary and details, on config server.
- controller.jobController().locked(id, run -> run.sleepingUntil(startTime.plusSeconds(300)));
+ Instant someTimeAfterStart = startTime.plusSeconds(450);
+ Instant inALittleWhile = controller.clock().instant().plusSeconds(90);
+ controller.jobController().locked(id, run -> run.sleepingUntil(someTimeAfterStart.isAfter(inALittleWhile) ? someTimeAfterStart : inALittleWhile));
return result;
}
case NODE_ALLOCATION_FAILURE -> {