我需要配置我的 pgbouncer 以使用超过 2000 个客户端连接,我正在阅读一些有关如何使用最大连接数的信息,然后我明白了我必须在 pgbouncer 上做什么max_client_con = 2000,但是default_pool_size呢,它们,不仅仅是一个问题是寻求一些支持,以了解在大型客户端连接上配置 pgbouncer 的正确方法
postgres.conf
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
unix_socket_directory = '/var/run/postgresql' # (change requires restart)
弹跳器.ini
[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