Repository navigation
Description
Production /api/healthz intermittently returns an application JSON 503 during ordinary dashboard use, after a successful deployment. This remains a production-readiness blocker; the ALB registration gap fixed by #1062 is a separate failure.
Evidence from the #1062 post-merge watch on 2026-11-09:
- Deploy 42706442649 logged DEPLOY_SHA
0a208d9c8c6cd8e9275ec4e6da7bc1fd4e0145ae, registered both expected targets, passed three minutes of public readiness, and retired green at 21:56:54Z. - Status-only public monitor sampled JSON 503s at 21:59:08.627483Z and 21:59:15.958679Z; recovered by 21:59:23.156368Z. The body SHA256
1c5f75e25741d5a3b6400b34df0c79c58f9aabc6581a54e264597e2504f51f96exactly matches the known readiness envelopeready=false, upstream=unreachable, reason=control-plane. These were not ALB-generated HTML 503s. - Active pod
web-api-blue-6b87b56669-rhzbxstayed 2/2 Running with zero restarts. Kubernetes events show web readiness, API liveness/healthz, and API readiness/readyztimeouts in the same interval. API liveness is a literal response, so the issue is broader than the database readiness query alone. - The interval overlaps the ordinary Chromium/WebKit demo-login verification. Both browsers successfully reached the dashboard and read 23 synthetic records. API request durations around 21:59:16–19Z reached ~1, ~2 and ~3 seconds for metrics, runs, jobs and data-quality. This is correlation, not a proven cause. No load test was run.
- The same class of post-deploy probe timeout was already observed at 15:20:53–15:21:04Z and preserved in Investigate transient public 503 during production blue/green cutover #1043, before fix(deploy): keep healthy targets through production cutover #1062. Images were reused by fix(deploy): keep healthy targets through production cutover #1062; it changes deploy/Helm behavior, not API code.
Diagnosis lead: dataset_lake in rust/crates/er-server/src/lib.rs synchronously calls read::open_org_lake from async request handlers; metrics/data-quality then synchronously query DuckDB on those handlers. Other routes already use er_obs::spawn_blocking_in_span. Investigate runtime starvation and CPU throttling with a deterministic local reproducer before claiming a root cause. Do not mask this by widening readiness timeouts or reducing probe assertions.
Acceptance:
- Reproduce ordinary dashboard reads concurrently with liveness/readiness in the existing local integration harness, and show the regression test fail before the fix.
- Fix the proven cause while preserving authorization, trace context, and bounded resource use. Keep all synchronous session creation/query/drop work off async executor threads if starvation is confirmed.
- Run
make checkand the appropriate full-stack integration tier, land through$land-pr, then verify real dashboard navigation plus independent public health without readiness failures. - Keep the distinction between cutover ALB registration and steady-state application readiness in the production-readiness ledger.
Local evidence pointers on the session host: .tools/prod-cutover-health.jsonl; Kubernetes events for the named pod; process logs in /er/prod/ for 21:59Z. No customer payload or credentials are needed to investigate.
Activity
athvin commentedon Nov 10, 2026
Claimed in draft #1077 at 2026-11-10T17:59:28.728836+00:00. Session
01a1be1a-66a7-72f3-8e78-32c20c5e0da9. The PR body contains the reproduction, fix and validation plan. Closing the draft releases the claim.fix(api): isolate lake reads from the async executor (#1077)