perf(db): bound multi-worker connection pools - #789
Conversation
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
WalkthroughDatabase pool defaults, validation, engine configuration, connection ceiling calculation, startup reporting, documentation, and regression tests were updated for per-process budgeting. ChangesDatabase pool budget
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The PR bounds default database connection pools while preserving explicit overrides and adds validation, logging, and documentation; no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
SQLALCHEMY_POOL_TIMEOUTCloses #788
Type of change
Checklist
Testing
.venv/Scripts/python.exe -m ruff check .— passedScreenshots
Not applicable (backend/configuration-only change).
Notes for reviewers
SQLALCHEMY_POOL_SIZEandSQLALCHEMY_MAX_OVERFLOWremain per-process settings and explicit environment values retain their existing meaning.25 + 60to5 + 5, limiting four Uvicorn workers to 40 potential connections instead of 340. Operators with a deliberately sized external pool can keep larger values explicitly.Summary by CodeRabbit
Improvements
Bug Fixes