Start a project

Tool 302 of 425 · Databases

Database Connection Pool Calculator

Recommends a pool size per instance that fits the database's connection limit and your query load.

Database Connection Pool Calculator

Your input

Result

MeasureValue
Config

    01

    What it does

    Recommends a pool size per instance that fits the database's connection limit and your query load.

    • max_connections budget
    • Cores × 2 + spindle guideline
    • Little's Law from query rate
    • HikariCP, pg and Prisma config

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Pool sizes and config, with a Copy and a Download button on every result.

    • Connection pool
    • PostgreSQL
    • Scaling

    Why it matters

    Too many connections slow a database down; too few queue requests. Autoscaling app instances multiply the problem.

    This keeps the total under the limit while covering your load.

    How to use it

    1. Type or paste your input; the example shows the format.
    2. Press Calculate. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. Copy or download what you need. Nothing leaves this page.

    FAQ

    Why not just raise max_connections?

    Each Postgres connection costs memory and context switching; more is often slower.

    When do I need PgBouncer?

    When instances × pool size exceeds what the database handles well.

    Is my input uploaded?

    No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

    Can I rely on the result?

    It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk