SigmaDev Digital home
Our past work
Pricing/Service
SigmaOne
DevOps
Tools
About
My Cart, empty
Get in touch

DEVELOPER · FREE

Database connection pool sizer

Size a Postgres connection pool from your instance count and worker counts — and spot when you have oversubscribed it.

Application instances

Pool size per instance

Other connections (migrations, cron, admin, replicas)

Database max_connections

Database CPU cores

Reset

Behind a transaction-mode pooler (PgBouncer, RDS Proxy) Behind a transaction-mode pooler (PgBouncer, RDS Proxy)

Result Connections demanded 75 6 × 10 + 15 Database allows 100 Headroom 25 25% spare Useful concurrency 9 4 cores × 2 + 1 You have headroom on max_connections but 75 connections against 4 cores will spend most of their time waiting on CPU rather than working. A smaller pool is usually faster: try 2 per instance and watch p99 latency — it often improves. Without a pooler, every application connection holds a Postgres backend process and its memory for its whole life, whether it is running a query or idle. A transaction-mode pooler is usually the highest-leverage change once you are past a handful of instances. Pool size against instance count

Instances

At current pool size

Fits in max_connections

6

75

Yes

12

135

No — 35 over

24

255

No — 155 over

Copy as Markdown

Copy as CSV

Run it on a spreadsheet

Paste rows with a heading row; the columns it understands are: Application instances, Pool size per instance, Other connections (migrations, cron, admin, replicas), Database max_connections, Database CPU cores, Behind a transaction-mode pooler (PgBouncer, RDS Proxy). Up to 500 rows.

Run on every row

NEXT STEP

Where to go from here

Questions about this tool? Ask us on WhatsApp, get a free quote for the work around it, or have us do it for you: a senior engineer on your side of the table, from ₦1,500,000/month.

Ask about this on WhatsApp
Get a free quote
A senior engineer on your side of the table
SigmaDev Digital home

Our services

Websites

Company

Selected work

Tools

Dartvel

Websites, apps, cloud, automation and AI for businesses in Nigeria and anywhere else. We build it, host it, watch it and keep it running, and explain everything in plain language.

Online stores and booking
Mobile apps
Cloud and DevOps
Plans and prices
About us
DevOps and AWS sprints
Invoice and quote calculator
Price list maker
Profit margin and markup
WhatsApp and AI automation
Frequently asked questions
Break-even calculator
Custom business software
Blog
VAT and sales tax
2D and 3D games
Get a free quote
AdSense readiness checker
Fixing what already exists
Daniel Effiong
QR code generator
All 178 tools · 144 free

Legal

Privacy
Terms
CAC
info@sigmadev.digital

© 2026 SigmaDev Digital. All rights reserved.

To the bottom

Cookies and measurement

We use Google Analytics to see which pages help and the Meta Pixel to measure our ads. Nothing loads unless you allow it.

Privacy policy

Accept all

Reject all

Close

Settings

Loading…