Uh oh!
There was an error while loading. Please reload this page.
fix(db): reduce connection pool sizes to prevent exhaustion - #3649
Conversation
You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace. To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
93c88b1 to
fe9e661Comparewaleedlatif1
commented
Mar 18, 2026
Greptile SummaryThis PR reduces the Postgres connection pool sizes to prevent exhaustion in multi-instance deployments — the main DB pool drops from 30 → 10 ( Key considerations:
Confidence Score: 3/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Service Instance N] --> B[Main DB Pool\nmax: 10\nidle_timeout: 20s\nconnect_timeout: 30s]
A --> C[Socket DB Pool\nmax: 10\nidle_timeout: 10s\nconnect_timeout: 20s]
B -->|up to 10 connections| D[(PostgreSQL\nDATABASE_URL)]
C -->|up to 10 connections| D
E[Service Instance 1] --> F[Main DB Pool\nmax: 10]
E --> G[Socket DB Pool\nmax: 10]
F -->|up to 10 connections| D
G -->|up to 10 connections| D
note1[Per instance: 20 connections max\nWith N instances: 20×N total] -.-> D
Last reviewed commit: "fix(db): reduce conn..." |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Type of Change
Testing
Tested manually
Checklist