From 7b11a88256005b10593892e13b22b9587a6de37c Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Tue, 14 Nov 2023 23:39:52 +0100 Subject: [PATCH] [SIS-xxx] enabling external configuration of db pool size --- .../executable/src/main/resources/application.properties | 1 + deployment/helm/sissi/templates/deployment.yaml | 4 ++++ deployment/helm/sissi/values.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/application/executable/src/main/resources/application.properties b/application/executable/src/main/resources/application.properties index 77ba648b..908c94e0 100644 --- a/application/executable/src/main/resources/application.properties +++ b/application/executable/src/main/resources/application.properties @@ -1,6 +1,7 @@ spring.datasource.url=jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME} spring.datasource.username= ${DB_USER} spring.datasource.password= ${DB_PASS} +spring.datasource.hikari.maximum-pool-size=${hikariPoolSize} spring.jpa.hibernate.default_schema=abstracto spring.jpa.properties.hibernate.default_schema=abstracto spring.quartz.jdbc.initialize-schema=never diff --git a/deployment/helm/sissi/templates/deployment.yaml b/deployment/helm/sissi/templates/deployment.yaml index 423ffc61..28eb5b9d 100644 --- a/deployment/helm/sissi/templates/deployment.yaml +++ b/deployment/helm/sissi/templates/deployment.yaml @@ -84,6 +84,10 @@ spec: secretKeyRef: name: api-keys key: twitchSecret + {{- range $key, $value := .Values.bot.propertyConfig }} + - name: {{ $key | quote }} + value: {{ $value | quote}} + {{- end }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/deployment/helm/sissi/values.yaml b/deployment/helm/sissi/values.yaml index 56d95486..f7197dae 100644 --- a/deployment/helm/sissi/values.yaml +++ b/deployment/helm/sissi/values.yaml @@ -17,6 +17,8 @@ bot: initialDelaySeconds: 60 periodSeconds: 5 failureThreshold: 3 + propertyConfig: + hikariPoolSize: 10 templateDeployment: enabled: true