Skip to content

"pool timed out while waiting for an open connection" error #3232

Answered by nk9
nk9 asked this question in Q&A
Discussion options

You must be logged in to vote

I implemented a deadpool pool, instead of the built-in PgPool, as suggested by this comment. That worked, but when I used the same concurrency limit of 20, I still got timeouts. The strange thing? It was exactly 6 connection acquisition timeouts every time! This time, though, the error said "max connections exceeded". Supabase says that you get 60 connections, so this is strange.

Still, I tried lowering the number of connections to 14 et… voilà. No more connection exceeded errors. And then I reverted all my deadpool changes and just set the connection limit to 14, and now PgPool is working without any "pool timed out" errors.

So it would appear that I've found the solution. I don't unders…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@benjamingb
Comment options

@hkaiser25
Comment options

Answer selected by nk9
Comment options

You must be logged in to vote
6 replies
@maxcountryman
Comment options

@nk9
Comment options

@maxcountryman
Comment options

@nk9
Comment options

@maxcountryman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants