Reputation: 720
Is it best practice to set the liveness probes initialDelaySeconds
_livenessProbe >= initialDelaySeconds
_readinessProbe + periodSeconds
_readinessProbe * timeoutSeconds
_readinessProbe?
Take for example the following
readinessProbe:
initialDelaySeconds: 360
periodSeconds: 30
timeoutSeconds: 30
livenessProbe:
initialDelaySeconds: 660
periodSeconds: 60
timeoutSeconds: 30
failureThreshold: 1
startupProbe:
initialDelaySeconds: 60
failureThreshold: 30
periodSeconds: 10
Over 64 starts of the application in pods the initialization of the application was maximal 120s with 99 percentile at 115s. Two thirds of applications were initialized in 60s.
So, the startup probe is done after 3 times the maximal measured initialization time of the application - 360s. Readiness and liveness probes both start after 360s. The liveness probe starts after 10 minutes.
Upvotes: 0
Views: 782