fix: کاهش probe timing به مقدار منطقی (60s readiness, 90s liveness)
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
CD - Build & Deploy / release (push) Has been cancelled
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
CI / security (push) Has been cancelled

This commit is contained in:
Ehsan.Asadi
2025-12-30 20:00:57 +03:30
parent da474ac5f2
commit c93dc06c67

View File

@@ -95,16 +95,17 @@ redis:
name: "peikarband-prod-secrets"
key: "redis-password"
# Override readiness probe for production (Reflex needs more time to start)
# Override readiness probe for production
# Reflex startup time: 30-60 seconds (per deployment checklist)
# Using /ping endpoint (simpler, faster response)
readinessProbe:
httpGet:
path: /ping
port: 8000
initialDelaySeconds: 120 # Increased to allow Reflex to fully compile and start
initialDelaySeconds: 60 # Allow Reflex to fully start (30-60s expected)
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6 # Allow more failures during startup (2 minutes total)
failureThreshold: 6 # Allow 6 failures = 60s grace period
# Override liveness probe
# Using /live endpoint which is specifically designed for liveness checks
@@ -112,7 +113,7 @@ livenessProbe:
httpGet:
path: /live
port: 8000
initialDelaySeconds: 120 # Increased to allow Reflex to fully start
initialDelaySeconds: 90 # More time for liveness (after readiness)
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 3