feat(ops): add /readyz readiness probe - #763
Conversation
Public readiness endpoint for HAProxy blue/green cutover. /healthz stays liveness-only; /readyz returns 503 when Postgres or Redis is unavailable.
🦋 Changeset detectedLatest commit: 133184b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Verdict: approve — Important1. Unauthenticated Every hit calls
Suggested mitigation: cache the snapshot in-process for ~1s (absorbs HAProxy's ~2s polling and floods with ≤1s staleness — fine for cutover), or make an explicit rate-limit/annotation decision using the repo's 2. Changeset bumps Every recent 3. Deploy docs don't reconcile the 3s worst-case probe latency with LB check timeouts — The probe can take up to ~3s when a dependency is slow; HAProxy Minor / Nit4. 5. Import ordering — 6. Handler spec lacks a database-only failure case — |
|
Re-review after the fix-up push (133184b): APPROVE. All 6 findings from my earlier review are addressed:
No blocking issues introduced. One non-blocking note for later: the PR's spec pins the cache-hit path but not TTL expiry/single-flight; I verified those behaviors are currently correct (TTL-expiry re-collect, concurrent single-flight, cached-503 all pass in a throwaway spec), so it's a coverage-only follow-up. Merging. Thanks @Ferryx349 — clean fix-up, and the single-flight cache design is exactly the right shape for this. |
phoenix-server
left a comment
There was a problem hiding this comment.
Approve — all findings addressed, re-review clean.
phoenix-server
left a comment
There was a problem hiding this comment.
Approve - all findings addressed, re-review clean.
Description
Summary
This PR adds public readiness endpoint for HAProxy blue/green cutover. /healthz stays
liveness-only;
Related Issue
Closes:- #762
Checklist: