Add PgBouncer to dev and PgBouncer stats to admin Infra page
- Add pgbouncer service to docker-compose-dev.yml with dev config - Route DATABASE_URL through pgbouncer:6432 in dev (matches prod) - Add PgBouncer pools and stats tables to /admin/infra with color-coded avg query/xact times and client waiting indicators - php, messenger, cron now depend on pgbouncer instead of database directly Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
19
docker/pgsql/pgbouncer-dev.ini
Normal file
19
docker/pgsql/pgbouncer-dev.ini
Normal file
@@ -0,0 +1,19 @@
|
||||
[databases]
|
||||
e_ticket = host=database port=5432 dbname=e_ticket
|
||||
|
||||
[pgbouncer]
|
||||
listen_addr = 0.0.0.0
|
||||
listen_port = 6432
|
||||
auth_type = md5
|
||||
auth_file = /etc/pgbouncer/userlist.txt
|
||||
pool_mode = transaction
|
||||
max_client_conn = 200
|
||||
default_pool_size = 20
|
||||
min_pool_size = 5
|
||||
reserve_pool_size = 5
|
||||
reserve_pool_timeout = 3
|
||||
server_lifetime = 3600
|
||||
server_idle_timeout = 600
|
||||
log_connections = 0
|
||||
log_disconnections = 0
|
||||
ignore_startup_parameters = extra_float_digits
|
||||
1
docker/pgsql/userlist-dev.txt
Normal file
1
docker/pgsql/userlist-dev.txt
Normal file
@@ -0,0 +1 @@
|
||||
"app" "md56a422f785c9e20873908ce25d1736ae2"
|
||||
Reference in New Issue
Block a user