In a health check, you define the endpoint, interval, timeout, and grace period:
Endpoint/CMD: This is the URL/CMD that you want to call or execute to verify the health check. An HTTP 200 status code is considered healthy. A cmds 0 exit status code is successful. In the case of a TCP connection, if the application is accepting the connection, then it is live.
Interval: This is the time period between two health checks.
Timeout: This is the amount of time the entity performing a health check will wait before determining that it’s a failure.
Grace period: Once the application is running, this is how long you have before the health check will start.