From 0dfc54236c5fe6a09febd7c40f6f398dfa81526c Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Thu, 5 Sep 2024 16:22:54 +0200 Subject: [PATCH 1/2] [NL-46] Fixes actuator issues ref: - Refactored configuration neo4j class - Created new ConnectionChecker class feat: - Extended configuration with neo4j Driver used by actuator - Added the actuator health property --- dspace/config/modules/actuator.cfg | 1 + dspace/config/modules/networklab.cfg | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dspace/config/modules/actuator.cfg b/dspace/config/modules/actuator.cfg index a14a3f1cac1f..2a2007a4bda9 100644 --- a/dspace/config/modules/actuator.cfg +++ b/dspace/config/modules/actuator.cfg @@ -21,6 +21,7 @@ management.endpoint.health.status.http-mapping.out-of-service = 200 management.health.ping.enabled = false management.health.diskSpace.enabled = false +#management.health.neo4j.enabled = false # CORS configuration for all actuators management.endpoints.web.cors.allowed-origins = ${rest.cors.allowed-origins} diff --git a/dspace/config/modules/networklab.cfg b/dspace/config/modules/networklab.cfg index 8995e239e671..91272b68300a 100644 --- a/dspace/config/modules/networklab.cfg +++ b/dspace/config/modules/networklab.cfg @@ -10,4 +10,8 @@ networklab.neo4j.url = bolt://neo4j:password@localhost #Name of the project (e.g. cris, glam) -networklab.project.name = cris \ No newline at end of file +networklab.project.name = cris + +# This property can be used to disable the actuator that checks the neo4j connection using the Driver +# setup inside the Neo4jSessionFactoryConfiguration. +# management.health.neo4j.enabled = false \ No newline at end of file From 150198b4afa5ddfdcb0b0cf22d0abcbe054947f6 Mon Sep 17 00:00:00 2001 From: Vincenzo Mecca Date: Fri, 6 Sep 2024 10:12:19 +0200 Subject: [PATCH 2/2] [NL-46] Removed duplicated entry in actuator.cfg --- dspace/config/modules/actuator.cfg | 1 - 1 file changed, 1 deletion(-) diff --git a/dspace/config/modules/actuator.cfg b/dspace/config/modules/actuator.cfg index 2a2007a4bda9..a14a3f1cac1f 100644 --- a/dspace/config/modules/actuator.cfg +++ b/dspace/config/modules/actuator.cfg @@ -21,7 +21,6 @@ management.endpoint.health.status.http-mapping.out-of-service = 200 management.health.ping.enabled = false management.health.diskSpace.enabled = false -#management.health.neo4j.enabled = false # CORS configuration for all actuators management.endpoints.web.cors.allowed-origins = ${rest.cors.allowed-origins}