forked from erp-dev/erp
fix: replace pgbouncer setting
This commit is contained in:
17
deploy/pgbouncer/pgbouncer.ini
Normal file
17
deploy/pgbouncer/pgbouncer.ini
Normal 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
|
||||
2
deploy/pgbouncer/userlist.txt
Normal file
2
deploy/pgbouncer/userlist.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
"postgres" "md53175bce1d3201d16594cebf9d7eb3f9d"
|
||||
"pgbouncer_stats" "md5020ee831c95741b96bf72786eed800c1"
|
||||
Reference in New Issue
Block a user