fix: update liveness and readiness probes for improved health checks

This commit is contained in:
sirily11 2026-01-27 18:33:31 +08:00
parent a53c9a098f
commit 12501d625a
No known key found for this signature in database
GPG Key ID: 210EC8A2FB4FB9CB

View File

@ -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