summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-09-10 18:16:44 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-09-10 18:16:44 +0800
commit9daa8134d541724dbd7bceaa9aa62a45b3ac975c (patch)
tree987694e932042834e6fb69197a966f44574db01e
parentd277804f976d3fea07ce6d167c8e75a6b1c1e747 (diff)
Added health check url to MSB registration
Change-Id: I19722571c6fa4a14e62d95dfae4c5d2ba5a197a9 Issue-ID: HOLMES-130 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java4
1 files changed, 4 insertions, 0 deletions
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<EngineDAppConfig> {
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;