tysonnorris commented on a change in pull request #4957:
URL: https://github.com/apache/openwhisk/pull/4957#discussion_r527042737



##########
File path: common/scala/src/main/resources/application.conf
##########
@@ -97,8 +97,17 @@ kamon {
         }
     }
 }
-
+akka {
+    # required to allow longer shutdown-termination-limit below
+    coordinated-shutdown.default-phase-timeout = 61 s
+}
 whisk {
+    http {
+        shutdown-unready-delay = 15 seconds # /ready will return 500 for this 
amount of time before connection draining starts

Review comment:
       This only allows an unready stage, which only affects the added /ready 
endpoint to return 503 (no other endpoints affected). This does not affect how 
akka http handles existing client connections during shutdown, so if akka 
allows gracefully terminating in flight requests, then no connection closed 
errors, but no new connections allowed. The purpose here is to allow external 
systems (e.g. kubernetes or reverse proxies) to probe the service and stop 
routing to this instance for some time before akka shutdown initiates. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to