fix: update liveness and readiness probes for improved health checks
This commit is contained in:
parent
a53c9a098f
commit
12501d625a
@ -188,6 +188,7 @@ lifecycle:
|
||||
- rm -f /home/node/.clawdbot/gateway.*.lock; sleep 10
|
||||
|
||||
# Probes
|
||||
# Use tcpSocket for startup/readiness (lightweight), exec for liveness (thorough)
|
||||
livenessProbe:
|
||||
enabled: true
|
||||
exec:
|
||||
@ -195,31 +196,25 @@ livenessProbe:
|
||||
- node
|
||||
- dist/index.js
|
||||
- health
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 10
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 30
|
||||
failureThreshold: 3
|
||||
|
||||
readinessProbe:
|
||||
enabled: true
|
||||
exec:
|
||||
command:
|
||||
- node
|
||||
- dist/index.js
|
||||
- health
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
tcpSocket:
|
||||
port: 18789
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
|
||||
startupProbe:
|
||||
enabled: true
|
||||
exec:
|
||||
command:
|
||||
- node
|
||||
- dist/index.js
|
||||
- health
|
||||
tcpSocket:
|
||||
port: 18789
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 12 # 60 seconds max startup time
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 30 # 150 seconds max startup time
|
||||
|
||||
Loading…
Reference in New Issue
Block a user