200
status when the application should receive traffic, and a 500
-level error otherwise. Health checks can be configured in the Advanced tab:
/healthz
endpoint returns a 200
status code.
:::info
Readiness probes should be used in conjunction with graceful shutdown behavior to control exactly when applications stop receiving traffic. See the graceful shutdown section for more information.
:::
SIGTERM
. The applications are then given a Termination Grace Period, which is the number of seconds after SIGTERM
is sent before the application will be forcefully killed. In this time, the application should stop receiving traffic, close any existing connections, and exit gracefully. The termination grace period can also be configured from the Advanced tab:
SIGTERM
is received, return a 500
-level response code on the readiness probe endpoint (see above for more information).SIGTERM
has been issued to your app, the termination grace period is in effect - this is when your app needs to close the server to prevent additional connections, and drain all existing connections before the grace period ends. Exit gracefully after connections are drained.