From 9609737efe0e7c7750d35575d571ec4a03deb710 Mon Sep 17 00:00:00 2001 From: Florian Herrengt Date: Thu, 1 Aug 2024 12:25:14 +0100 Subject: [PATCH] fix pgbouncer --- databases/pgbouncer.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/databases/pgbouncer.yaml b/databases/pgbouncer.yaml index 8c1d599..4de6a33 100644 --- a/databases/pgbouncer.yaml +++ b/databases/pgbouncer.yaml @@ -43,6 +43,18 @@ spec: value: postgres.databases - name: PGBOUNCER_DATABASE value: nocodelytics_production + - name: PGBOUNCER_DEFAULT_POOL_SIZE + value: "100" + - name: PGBOUNCER_MAX_CLIENT_CONN + value: "700" + - name: PGBOUNCER_SERVER_IDLE_TIMEOUT + value: "60" + - name: PGBOUNCER_POOL_MODE + value: session + - name: PGBOUNCER_RESERVE_POOL_SIZE + value: "10" + - name: PGBOUNCER_RESERVE_POOL_TIMEOUT + value: "5" --- apiVersion: apps/v1 kind: Deployment @@ -76,18 +88,6 @@ spec: secretKeyRef: name: secrets key: POSTGRES_PASSWORD - - name: PGBOUNCER_DEFAULT_POOL_SIZE - value: "50" - - name: PGBOUNCER_MAX_CLIENT_CONN - value: "700" - - name: PGBOUNCER_SERVER_IDLE_TIMEOUT - value: "60" - - name: PGBOUNCER_POOL_MODE - value: transaction - - name: PGBOUNCER_RESERVE_POOL_SIZE - value: "10" - - name: PGBOUNCER_RESERVE_POOL_TIMEOUT - value: "5" --- apiVersion: v1 kind: Service