From d0173e5143314ebb8921746ba73d966ff61aae5c Mon Sep 17 00:00:00 2001 From: Michael Kaplan Date: Tue, 21 May 2024 00:37:47 +0200 Subject: [PATCH] tune pg bouncer --- .../helm/charts/kissj/templates/pgbouncer.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/deploy/helm/charts/kissj/templates/pgbouncer.yaml b/deploy/helm/charts/kissj/templates/pgbouncer.yaml index 8d2bc91d..bf429502 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: "300" - name: PGBOUNCER_IGNORE_STARTUP_PARAMETERS value: "extra_float_digits" @@ -63,8 +63,21 @@ spec: - name: PGBOUNCER_POOL_MODE value: "session" + - name: PGBOUNCER_DEFAULT_POOL_SIZE + value: "300" + + - name: PGBOUNCER_RESERVE_POOL_SIZE value: "50" + + - name: PGBOUNCER_RESERVE_POOL_TIMEOUT + value: "5" + + - name: PGBOUNCER_LOG_CONNECTIONS + value: "1" + + - name: PGBOUNCER_LOG_DISCONNECTIONS + value: "1" resources: requests: memory: "500Mi"