From f7efe1c1c4cebe1179c44445de02ffd02f57c5af Mon Sep 17 00:00:00 2001 From: "Kristen.Herum" Date: Mon, 21 Oct 2024 12:33:24 +0200 Subject: [PATCH] Add database connection pool validation query #deploy-levende-arbeidsforhold-ansettelse Added a validation query to the database connection pool configuration in the application-prod.yml file. This ensures the connection's health is checked by running a simple query, enhancing reliability. --- .../src/main/resources/application-prod.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/levende-arbeidsforhold-ansettelse/src/main/resources/application-prod.yml b/apps/levende-arbeidsforhold-ansettelse/src/main/resources/application-prod.yml index 227159de6b2..7ba882844dd 100644 --- a/apps/levende-arbeidsforhold-ansettelse/src/main/resources/application-prod.yml +++ b/apps/levende-arbeidsforhold-ansettelse/src/main/resources/application-prod.yml @@ -5,6 +5,8 @@ spring: username: ${NAIS_DATABASE_TESTNAV_LEVENDE_ARBEIDSFORHOLD_TESTNAV_LEVENDE_ARBEIDSFORHOLD_USERNAME} password: ${NAIS_DATABASE_TESTNAV_LEVENDE_ARBEIDSFORHOLD_TESTNAV_LEVENDE_ARBEIDSFORHOLD_PASSWORD} name: ${NAIS_DATABASE_TESTNAV_LEVENDE_ARBEIDSFORHOLD_TESTNAV_LEVENDE_ARBEIDSFORHOLD_DATABASE} + pool: + validation-query: select 1 flyway: url: ${NAIS_DATABASE_TESTNAV_LEVENDE_ARBEIDSFORHOLD_TESTNAV_LEVENDE_ARBEIDSFORHOLD_JDBC_URL} username: ${NAIS_DATABASE_TESTNAV_LEVENDE_ARBEIDSFORHOLD_TESTNAV_LEVENDE_ARBEIDSFORHOLD_USERNAME}