Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,34 @@
|
||||
; PgBouncer config for boilerplate.
|
||||
;
|
||||
; 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]
|
||||
boilerplate = host=postgres port=5432 dbname=boilerplate_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
|
||||
Reference in new issue
Block a user