Skip to content

Using a connection pooler like Supavisor #797

Answered by chasers
rphlmr asked this question in Q&A
Discussion options

You must be logged in to vote

If you're on Fly with a known set of nodes you may not even need the pooler. Because Fly speaks IPv6.

And yes you should set the pool size for your client (or leave the default but I like to be explicit). Then you will have pool size * N nodes connected to your database. Make sure you have enough connections available with show max_connections; and then subtract current active connections select count(*) from pg_stat_activity;.

If you find you need the pooler the ideal setup is likely to use session mode (pooler url on port 5432). This is pretty close just a proxy.

For every connection from your server it will spin up a connection to your database and hold it as long as your server has th…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rphlmr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants