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
|
- rm -f /home/node/.clawdbot/gateway.*.lock; sleep 10
|
||||||
|
|
||||||
# Probes
|
# Probes
|
||||||
|
# Use tcpSocket for startup/readiness (lightweight), exec for liveness (thorough)
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
exec:
|
exec:
|
||||||
@ -195,31 +196,25 @@ livenessProbe:
|
|||||||
- node
|
- node
|
||||||
- dist/index.js
|
- dist/index.js
|
||||||
- health
|
- health
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 30
|
periodSeconds: 60
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 30
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
exec:
|
tcpSocket:
|
||||||
command:
|
port: 18789
|
||||||
- node
|
initialDelaySeconds: 10
|
||||||
- dist/index.js
|
periodSeconds: 5
|
||||||
- health
|
timeoutSeconds: 3
|
||||||
initialDelaySeconds: 15
|
|
||||||
periodSeconds: 10
|
|
||||||
timeoutSeconds: 5
|
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
startupProbe:
|
startupProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
exec:
|
tcpSocket:
|
||||||
command:
|
port: 18789
|
||||||
- node
|
|
||||||
- dist/index.js
|
|
||||||
- health
|
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 3
|
||||||
failureThreshold: 12 # 60 seconds max startup time
|
failureThreshold: 30 # 150 seconds max startup time
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user