1
0
forked from erp-dev/erp

fix: replace pgbouncer setting

This commit is contained in:
2025-12-25 10:40:34 +08:00
parent 4580539746
commit 5a1e618cab
9 changed files with 46 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
[databases]
# 主业务库,经 PgBouncer 转发到 Postgres
flower = host=postgres port=5432 dbname=flower pool_mode=session
[pgbouncer]
listen_addr = 0.0.0.0
listen_port = 6432
auth_type = md5
auth_file = /etc/pgbouncer/userlist.txt
pool_mode = session
max_client_conn = 800
default_pool_size = 40
reserve_pool_size = 10
stats_users = pgbouncer_stats
ignore_startup_parameters = extra_float_digits
log_connections = 0
log_disconnections = 0

View File

@@ -0,0 +1,2 @@
"postgres" "md53175bce1d3201d16594cebf9d7eb3f9d"
"pgbouncer_stats" "md5020ee831c95741b96bf72786eed800c1"