From 9daa8134d541724dbd7bceaa9aa62a45b3ac975c Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Mon, 10 Sep 2018 18:16:44 +0800 Subject: Added health check url to MSB registration Change-Id: I19722571c6fa4a14e62d95dfae4c5d2ba5a197a9 Issue-ID: HOLMES-130 Signed-off-by: GuangrongFu --- engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java index 7ac4642..afaf755 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java @@ -78,6 +78,10 @@ public class EngineDActiveApp extends IOCApplication { Node node = new Node(); node.setIp(serviceAddrInfo[0]); node.setPort(serviceAddrInfo[1]); + node.setCheckType("HTTP"); + node.setCheckUrl(String.format("https://%s:%s/api/holmes-engine-mgmt/v1/healthcheck", serviceAddrInfo[0], serviceAddrInfo[1])); + node.setCheckTimeOut("60s"); + node.setCheckInterval("60s"); nodes.add(node); msinfo.setNodes(nodes); return msinfo; -- cgit 1.2.3-korg