title: Pgbouncer on large client connections
body: <p>I need to configure my pgbouncer for work with more than 2000 clients connections, I was reading some information about how to work with max connections, then I have understood what I must to do <strong>max_client_con = 2000</strong> on pgbouncer, but what about <strong>default_pool_size</strong>, them, more than a question is to ask for some support in order to understand the right way on configure pgbouncer on large client connections</p>
  
  <p><strong>postgres.conf</strong></p>
  
  <pre><code>port = 5432                             # (change requires restart)
  max_connections = 100                   # (change requires restart)
  unix_socket_directory = '/var/run/postgresql'           # (change requires restart)
  </code></pre>
  
  <p><strong>pgbouncer.ini</strong></p>
  
  <pre><code>[pgbouncer]
  logfile = /var/log/postgresql/pgbouncer.log
  pidfile = /var/run/postgresql/pgbouncer.pid
  listen_addr = 127.0.0.1
  listen_port = 6432
  unix_socket_dir = /var/run/postgresql
  auth_type = md5
  auth_file = /etc/pgbouncer/userlist.txt
  admin_users = carlos
  pool_mode = statement
  server_reset_query = DISCARD ALL
  max_client_conn = 100
  default_pool_size = 20
  </code></pre>