Skip to content

fix(db): resolve connection pool exhaustion and SSL stability issues#67

Merged
aniebietafia merged 1 commit into
mainfrom
fixes/production_bugs
May 11, 2026
Merged

fix(db): resolve connection pool exhaustion and SSL stability issues#67
aniebietafia merged 1 commit into
mainfrom
fixes/production_bugs

Conversation

@aniebietafia
Copy link
Copy Markdown
Contributor

  • Increase pool_size and max_overflow to 20 to handle higher concurrent load
  • Set pool_recycle to 300s to prevent 'SSL connection closed unexpectedly' errors from stale connections
  • Add sslmode=require to connect_args for improved stability with managed Postgres
  • Ensure pool_pre_ping is active to proactively discard dead connections

- Increase pool_size and max_overflow to 20 to handle higher concurrent load
- Set pool_recycle to 300s to prevent 'SSL connection closed unexpectedly' errors from stale connections
- Add sslmode=require to connect_args for improved stability with managed Postgres
- Ensure pool_pre_ping is active to proactively discard dead connections

Signed-off-by: aniebietafia <aniebietafia87@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 11, 2026

Warning

Rate limit exceeded

@aniebietafia has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 24 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ad09c3d7-f9e1-4bb5-962f-9bdaeb0a9808

📥 Commits

Reviewing files that changed from the base of the PR and between 7855fab and af56ea3.

📒 Files selected for processing (1)
  • app/db/session.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fixes/production_bugs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@aniebietafia aniebietafia merged commit 867d7ec into main May 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant