Connection pool sizer.
Size your database pool so you never hit FATAL: too many connections. Enter your numbers and see total demand, headroom, a clear verdict, and a safe pool size — including the deploy-overlap spike that catches people out.
The error that only shows up under load
Connection exhaustion is a classic production surprise: everything is fine in testing with one instance, then you scale to six, a deploy briefly runs twelve, and the database starts refusing connections. The math is simple but easy to skip — instances times pool size, plus what is reserved, has to fit under max_connections with room for the deploy overlap. Sizing the pool down (and reaching for a pooler when you have many instances) is almost always the fix, because a pool far larger than your concurrent queries buys nothing.
Free tools for the backend you run.
One of a set of free developer tools from Infraveil — the control plane for running, securing, and watching your backend on servers you own. Pairs with the capacity calculator and DATABASE_URL builder.
See all free toolsGet the backend toolkit
Practical tools and guides for shipping and running a backend you own. No spam.