35 lines
1.1 KiB
INI
35 lines
1.1 KiB
INI
; PgBouncer config for HiveGrid.
|
|
;
|
|
; Mounted at /etc/pgbouncer/pgbouncer.ini inside the edoburu/pgbouncer container.
|
|
; See docs/ops/pgbouncer.md for tuning rationale and rollback.
|
|
;
|
|
; Pool-mode rationale: `transaction` is the default for Prisma-style web workloads.
|
|
; Pair it with `pgbouncer=true&connection_limit=10` on DATABASE_URL so Prisma
|
|
; disables prepared-statement caching (transaction pooling breaks them).
|
|
; Prisma `migrate`, `db push`, `db pull` must use DIRECT_URL (port 5432, direct
|
|
; to Postgres) — see schema.prisma `directUrl`.
|
|
|
|
[databases]
|
|
hivegrid = host=postgres port=5432 dbname=hivegrid_validation
|
|
|
|
[pgbouncer]
|
|
listen_addr = 0.0.0.0
|
|
listen_port = 6432
|
|
pool_mode = transaction
|
|
default_pool_size = 25
|
|
max_client_conn = 1000
|
|
reserve_pool_size = 5
|
|
reserve_pool_timeout = 3
|
|
server_idle_timeout = 600
|
|
server_lifetime = 3600
|
|
query_timeout = 0
|
|
query_wait_timeout = 30
|
|
server_reset_query = DISCARD ALL
|
|
server_check_query = SELECT 1
|
|
server_check_delay = 30
|
|
admin_users = pgb_admin
|
|
stats_users = pgb_admin
|
|
auth_type = scram-sha-256
|
|
auth_file = /etc/pgbouncer/userlist.txt
|
|
ignore_startup_parameters = extra_float_digits,search_path
|