Skip to content

Commit d899328

Browse files
authored
fix: use valid Cloud Run startup probe timing (#36)
1 parent b3bba66 commit d899328

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ Production health checks use separate endpoints:
288288
per-dependency timeouts. It returns `503` when a critical dependency is not ready and `200`
289289
with `status: degraded` when only an optional dependency such as Redis is unavailable.
290290
- Cloud Run startup and readiness probes use `/ready`; its liveness probe uses `/health`.
291+
- The startup probe runs every 10 seconds with a 5-second timeout and allows 30 failures,
292+
giving new revisions up to five minutes to become ready.
291293
- `READINESS_REQUIRE_SUPABASE=true` and `READINESS_REQUIRE_NEO4J=true` make those production
292294
dependencies critical. Both default to `false` so local development can run with them disabled.
293295

cloudrun/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
httpGet:
2626
path: /ready
2727
port: 8080
28-
periodSeconds: 2
28+
periodSeconds: 10
2929
timeoutSeconds: 5
3030
failureThreshold: 30
3131
livenessProbe:

0 commit comments

Comments
 (0)