Skip to content

Fine Tuning pgbouncer - High number of sessions #711

Answered by petere
V0lantis asked this question in Q&A
Discussion options

You must be logged in to vote

I think one problem is that with max_client_conn 500 and pool_size 550 you are defeating one of the purposes of PgBouncer a bit. That purpose is roughly speaking to allow more connections from client->pgbouncer and convert those to fewer connections pgbouncer->server. However, in your configuration, you are at best passing all connections through and not gaining anything.

The exact configuration of course depends very much on local specifics, but consider something like max_client_conn 1000 and pool_size 100 to get a real effect out of pgbouncer.

The discussion about number of CPUs versus number of sessions is for PostgreSQL proper but does not apply to PgBouncer in the same way. PgBounce…

Replies: 1 comment 2 replies

Comment options

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

@V0lantis
Comment options

Answer selected by V0lantis
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