Production PgBouncer Transaction Connection Pooling Config

;; Production PgBouncer Configuration [databases] app_db = host=127.0.0.1 port=5432 dbname=app_production auth_user=postgres [pgbouncer] logfile = /var/log/postgresql/pgbouncer.log pidfile = /var/run/postgresql/pgbouncer.pid listen_addr = 0.0.0.0 listen_port = 6432 auth_type = scram-sha-256 auth_file = /etc/pgbouncer/userlist.txt ;; Connection Pool Mode (transaction mode for stateless apps) pool_mode = transaction ;; Connection Limits max_client_conn = 5000 default_pool_size = 50 min_pool_size = 10 reserve_pool_size = 10 reserve_pool_timeout = 5.0 max_db_connections = 200 ;; Timeouts and Keepalive server_idle_timeout = 600 client_idle_timeout = 0 server_connect_timeout = 15 server_login_retry = 15 tcp_keepalive = 1 tcp_keepcnt = 3 tcp_keepidle = 30 tcp_keepintvl = 10
Production PgBouncer Transaction Connection Pooling Config
Note
Notification