Create pgbouncer.ini

This commit is contained in:
RipleyBooya 2025-03-01 00:19:42 +01:00 committed by GitHub
parent 64e58b389a
commit 320117f1a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

17
pgbouncer.ini Normal file
View file

@ -0,0 +1,17 @@
# Configuration PgBouncer
[databases]
* = host=127.0.0.1 port=15432 auth_user=postgres pool_mode=session max_client_conn=100
[pgbouncer]
listen_addr = 0.0.0.0
listen_port = 5432
auth_type = md5
auth_file = /etc/pgbouncer/userlist.txt
admin_users = postgres
max_client_conn = 200
default_pool_size = 20
reserve_pool_size = 10
pool_mode = transaction
server_reset_query = DISCARD ALL
logfile = /var/log/pgbouncer.log
pidfile = /var/run/pgbouncer.pid