From d470643ebce404fc226bc65aa02bd12891c7283e Mon Sep 17 00:00:00 2001 From: Can Date: Tue, 7 Oct 2025 18:20:17 +0200 Subject: [PATCH 1/2] Adding max lifetime to db connection --- src/main/resources/application-prod.properties | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 9f0dc6d..04afcb2 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -9,6 +9,8 @@ spring.jpa.show-sql=false spring.sql.init.continue-on-error=true spring.jpa.hibernate.ddl-auto=update +spring.datasource.hikari.max-lifetime=600000 + # URL to the GraphQL endpoint of the content service. The skilllevel service uses this to fetch information # about assignments it needs to calculate the users' skill levels content_service.url=http://app-content:4001/graphql From 4b1087b380a57196b5aa59897f282a1958db7b97 Mon Sep 17 00:00:00 2001 From: Can Date: Tue, 7 Oct 2025 18:58:45 +0200 Subject: [PATCH 2/2] Shortened lifetime --- src/main/resources/application-prod.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties index 04afcb2..18265e4 100644 --- a/src/main/resources/application-prod.properties +++ b/src/main/resources/application-prod.properties @@ -9,7 +9,7 @@ spring.jpa.show-sql=false spring.sql.init.continue-on-error=true spring.jpa.hibernate.ddl-auto=update -spring.datasource.hikari.max-lifetime=600000 +spring.datasource.hikari.max-lifetime=240000 # URL to the GraphQL endpoint of the content service. The skilllevel service uses this to fetch information # about assignments it needs to calculate the users' skill levels