Commit Graph
3 Commits
Author SHA1 Message Date
ClaudeandClaude Opus 5.5 63c28d0f13 fix(db): one connection budget for every web pool; max_connections 60 (BUG-2345, #349)
Independent Staging Quality Gate / validate-frontend (push) Successful in 6m10s
Independent Staging Quality Gate / validate-python (push) Successful in 7m44s
Independent Staging Quality Gate / publish (push) Successful in 3m32s
Four pools at max 10 each (40) ran against max_connections=30. Pool maxima now
come from lib/db/pool-limits.ts (identity 6, app 12, service 8, admin 3,
health 1 = 30, env-tunable 1-20) with a reserve of 10 for backup, migration,
psql and the second web container during a deploy. Idle connections close
after 10 s. Postgres max_connections 30 -> 60. A test pins the budget against
the compose file and forbids hard-coded pool maxima.

Production picks this up on the next deploy: run-production-deploy.sh runs
`compose up -d --wait postgres`, which recreates the Postgres container once
(a few seconds; data stays on the volume).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DbBXoyn7Hj3LCW3BUs5bZ8
2026-11-25 10:25:23 +08:00
jesse-uxandGrok (agent loop) 53d8df257d 给内测补上每日加密备份、宕机告警和日志上限。
主机安装和一次恢复演练留给产品。页面没有变化。

Co-Authored-By: Grok (agent loop)
2026-10-15 12:58:34 +08:00
Jesse_Chen 10bec0408b feat: add private staging postgres topology 2026-07-21 07:45:14 +08:00