Skip to content

Commit 8fa1dec

Browse files
committed
Comment about timeout fudge factor
1 parent abb145f commit 8fa1dec

File tree

1 file changed

+4
-0
lines changed
  • operator/src/main/java/oracle/kubernetes/operator/helpers

1 file changed

+4
-0
lines changed

operator/src/main/java/oracle/kubernetes/operator/helpers/PodHelper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ public NextAction apply(Packet packet) {
430430

431431
ServerSpec serverSpec = info.getDomain().getServer(serverName, clusterName);
432432
if (serverSpec != null) {
433+
// We add a 10 second fudge factor here to account for the fact that WLST takes
434+
// ~6 seconds to start, so along with any other delay in connecting and issuing
435+
// the shutdown, the actual server instance has the full configured timeout to
436+
// gracefully shutdown before the container is destroyed by this timeout.
433437
gracePeriodSeconds =
434438
serverSpec.getShutdown().getTimeoutSeconds() + DEFAULT_ADDITIONAL_DELETE_TIME;
435439
}

0 commit comments

Comments
 (0)