From 79068802e5d87d40b2f1bca60d79a6eaf0080ab4 Mon Sep 17 00:00:00 2001 From: Milos Backonja <35807060+milosbackonja@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:19:19 +0100 Subject: [PATCH] feat: Tune postgresql - helm chart (#822) Signed-off-by: Milos Backonja Signed-off-by: Shota Jolbordi --- infrastructure/charts/agent/templates/postgresql.yaml | 3 +++ infrastructure/charts/agent/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/infrastructure/charts/agent/templates/postgresql.yaml b/infrastructure/charts/agent/templates/postgresql.yaml index b28f5a4e35..d34e98fc9e 100644 --- a/infrastructure/charts/agent/templates/postgresql.yaml +++ b/infrastructure/charts/agent/templates/postgresql.yaml @@ -38,6 +38,9 @@ spec: agent: agent-admin postgresql: version: "14" + parameters: # Expert section + shared_buffers: {{ .Values.database.postgres.sharedBuffers }} + max_connections: {{ .Values.database.postgres.maxConnections }} {{- if .Values.keycloak.enabled }} --- diff --git a/infrastructure/charts/agent/values.yaml b/infrastructure/charts/agent/values.yaml index a2937a8adb..9b892b851a 100644 --- a/infrastructure/charts/agent/values.yaml +++ b/infrastructure/charts/agent/values.yaml @@ -68,6 +68,8 @@ database: managingTeam: atala databaseSize: 4Gi numberOfInstances: 2 + sharedBuffers: 125MB + maxConnections: 40 resources: requests: cpu: 100m