Example 1
- 8 cores
- 3 instances
- cap 100
51
What pool at 8 cores and 3 instances? 51. A heuristic, not a live DB.
Type cores, instances, and an optional cap. 8 and 3 give 51. 4 and 2 give 18. 16 and 4 give 132. (cores×2+1)×instances, not a PostgreSQL probe.
This is the PostgreSQL cores×2+1 heuristic per instance, not a max_connections read. Request windows sit on API rate limit.
Enter data and click Calculate.
Database Connections Calculator in this calculator multiplies a heuristic by instances. 8 cores and 3 instances give 51. 4 and 2 give 18. 16 and 4 give 132. The formula is (cores × 2 + 1) × instances. The calculator does not read max_connections from a server.
Field db-cores is cores. Field db-inst is application instances. Field db-max-conn is an optional cap. 8 × 2 + 1 = 17, times 3 is 51. 4 × 2 + 1 = 9, times 2 is 18. 16 × 2 + 1 = 33, times 4 is 132.
51 does not come from pg_settings. 18 is not PgBouncer. 132 at cap 100 only shows the sketch is over the typed ceiling. The calculator does not log into a database.
Cache hit ratio next door counts requests. API rate limit times a window. Here 8 and 3 stay 51, the pool from the formula alone.
Type 8, 3, and 100, then Calculate. The result is 51. A comma is not needed; the fields are integers. Zero cores give no pool.
8 and 3 give 51. 4 and 2 give 18. 16 and 4 give 132. Another instance count at 8 changes 51.
pool = (cores × 2 + 1) × instances. db-max-conn is a typed ceiling, not a probe.
Pool = (cores × 2 + 1) × instances. 8 and 3 give 51. Not a live DB.
51
What pool at 8 cores and 3 instances? 51. A heuristic, not a live DB.
18
What pool at 4 and 2? 18.
132
What pool at 16 and 4? 132. A sketch, not a max_connections probe.
51. (8 × 2 + 1) × 3. A heuristic, not a live DB.
18. (4 × 2 + 1) × 2.
132. (16 × 2 + 1) × 4.
No. The calculator does not connect. You type the cap.
A typed ceiling. 51 fits in 100. 132 at 100 only compares the sketch.
No. Only cores×2+1 times instances.
No. Cores and instances must be positive.
That card turns 60 and 15 min into 900. Here 8 and 3 give 51.
The field is an integer. The examples keep 8, 4, and 16.
The calculator counts bits, bytes or throughput from your numbers. Below are SI and bit definitions (NIST).
Page updated in 2026.
A pool is a set of pre-opened DB connections that the app borrows and returns instead of opening TCP + auth on every query. This calculator uses the cores × 2 + 1 rule per instance and — if you enter max_connections — checks whether the total pool blows past the database limit.
When concurrent requests needing DB outnumber free connections, threads wait in the pool queue. Symptoms: rising p95/p99 latency, “connection acquisition” timeouts, lower RPS while app CPU looks idle.
Example: 80 concurrent requests needing DB, pool=20 → most wait. Raising the pool (within the DB limit) often clears timeouts — if the database has IOPS/CPU to handle more concurrency.
max_connections means “too many connections” errors for new clients.