Skip to content

Commit

Permalink
Merge branch '2.4.x' into main
Browse files Browse the repository at this point in the history
Closes gh-26701
  • Loading branch information
mbhave committed May 28, 2021
2 parents b8b0430 + 5314bda commit 54c3194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Expand Up @@ -17,4 +17,4 @@ include::deployment/cloud.adoc[]

include::deployment/installing.adoc[]

include::deployment/whats-next.adoc[]
include::deployment/whats-next.adoc[]
Expand Up @@ -138,6 +138,10 @@ The preStop handler can be configured via the PodSpec in the pod's configuration

Once the pre-stop hook has completed, SIGTERM will be sent to the container and <<features#features.graceful-shutdown,graceful shutdown>> will begin, allowing any remaining in-flight requests to complete.

NOTE: When Kubernetes sends a SIGTERM signal to the pod, it waits for a specified time called the termination grace period (the default for which is 30 seconds).
If the containers are still running after the grace period, they are sent the SIGKILL signal and forcibly removed.
If the pod takes longer than 30 seconds to shut down, which could be because you've increased spring.lifecycle.timeout-per-shutdown-phase, make sure to increase the termination grace period by setting the `terminationGracePeriodSeconds` option in the Pod YAML.



[[deployment.cloud.heroku]]
Expand Down

0 comments on commit 54c3194

Please sign in to comment.