default_pool_size should for sure be lower than max_client_conn in your pgbouncer.ini. Your default_pool_size is the amount of connections to your database from pgbouncer (per user. Most setups only has one). The default max connections for a postgresql database is 100. You need to leave a few of these connections for admin access etc, so default_pool_size should be max 95. but better set it at 20 or even less and let pgbouncer handle the pooling.
↧