From 99978146cff606aa26969ea6cc12ae234df9baee Mon Sep 17 00:00:00 2001 From: Michael Kaplan Date: Tue, 21 May 2024 01:08:57 +0200 Subject: [PATCH] test transaction pooling --- deploy/helm/charts/kissj/templates/pgbouncer.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/deploy/helm/charts/kissj/templates/pgbouncer.yaml b/deploy/helm/charts/kissj/templates/pgbouncer.yaml index 8d2bc91d..92c040d1 100644 --- a/deploy/helm/charts/kissj/templates/pgbouncer.yaml +++ b/deploy/helm/charts/kissj/templates/pgbouncer.yaml @@ -50,10 +50,10 @@ spec: value: "5432" # pg bouncer config - name: PGBOUNCER_MAX_CLIENT_CONN - value: "10000" + value: "2500" - name: PGBOUNCER_MAX_DB_CONNECTIONS - value: "5000" + value: "100" - name: PGBOUNCER_IGNORE_STARTUP_PARAMETERS value: "extra_float_digits" @@ -62,9 +62,13 @@ spec: value: "prefer" - name: PGBOUNCER_POOL_MODE - value: "session" + value: "transaction" + - name: PGBOUNCER_DEFAULT_POOL_SIZE - value: "50" + value: "290" + + - name: PGBOUNCER_MIN_POOL_SIZE + value: "10" resources: requests: memory: "500Mi"