fix(helm): reduce Hindsight DB pressure during liveness#15
Conversation
|
🔗 Paperclip issue: BLO-13560 |
1 similar comment
|
🔗 Paperclip issue: BLO-13560 |
|
@ally please review the Helm liveness/DB-pressure mitigation for BLO-13560, focusing on whether moving liveness off DB-backed health endpoints and capping default worker/API DB concurrency is safe for the embedded PostgreSQL deployment path. |
Ally — Consolidated PR ReviewLenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex. Critical Issues (1)
Strengths
Recommended Action
Self-review comment mode: this PR was authored by the same bot identity; formal review/approval must come from a human or a distinct reviewer identity. |
|
Addressed the critical worker-slot starvation finding in ac2b819.
|
Ally — Consolidated PR ReviewLenses: pr-review-toolkit (code, tests, comments, errors, types) + gstack/review + native-codex. Looks goodThis push fixes the Critical finding from the prior review (head
Suggestions
Strengths
Recommended ActionNo blocking issues remain. Safe to merge from a correctness standpoint; monitor retain/ingest queue depth after rollout given the thin shared pool. Self-review comment mode: this PR was authored by the same bot identity; formal review/approval must come from a human or a distinct reviewer identity. |
Summary\n- move API liveness from DB-backed /health to process-local /version while keeping readiness on /health\n- move worker liveness from DB-backed /health to process-local /metrics while keeping readiness on /health\n- cap default embedded-Postgres DB pools and worker concurrency to reduce TooManyConnections/DiskFull pressure during retain/consolidation backlog\n\n## Verification\n- python3 -m py_compile hindsight-api-slim/hindsight_api/engine/memory_engine.py\n- helm template hindsight helm/hindsight --set worker.enabled=true >/tmp/hindsight-rendered-worker.yaml\n- git diff --check origin/main..HEAD\n\n## Notes\n- Live patch attempt for BLO-13560 was blocked by RBAC: serviceaccount system:serviceaccount:paperclip:paperclip-k8s-mcp-ns-rw cannot patch apps/deployments in namespace hindsight.\n- Focused pytest and ./scripts/hooks/lint.sh could not run in this runtime because pytest and uv are not installed.