Slide 26
Slide 26 text
26
@saturnism @gcpcloud
When to use? Failure Means... Practices Example
Liveness
Probe
If application is
alive.
Application will be
restarted, and that a
restart will help recover.
Runs on serving port of the
application, e.g., 8080.
Don't check dependency. E.g.,
don't check dependent database
connection, etc.
A simple /alive URL
that returns 200.
Readiness
Probe
Ready to serve
requests.
Take the pod instance
out of load balancer.
Flip to ready when application has
done all the initializations (cache
preloaded).
Upon SIGTERM, flip readiness to
false. See Graceful Shutdown.
/actuator/health on
the management
port.