diff options
author | tang peng <tang.peng5@zte.com.cn> | 2020-09-24 15:19:06 +0800 |
---|---|---|
committer | tang peng <tang.peng5@zte.com.cn> | 2020-09-24 15:19:06 +0800 |
commit | 1c568079fd4e19220b32dee953fa10c43806294e (patch) | |
tree | cf3276e12157ff6552f7b686fb867354635d89cd /engine-d/src/main/java | |
parent | 9fc669ec1c40c399bc2908a4b3444ae0e3d6538d (diff) |
Fixed an Issue on API Calling via MSB
Issue-ID: HOLMES-365
Signed-off-by: tang peng <tang.peng5@zte.com.cn>
Change-Id: I169d030261bdf63ffe5c395aeaa02ebb61230cc0
Diffstat (limited to 'engine-d/src/main/java')
-rw-r--r-- | engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java | 4 |
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 49627fa..7f49621 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 @@ -71,17 +71,21 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> { msinfo.setServiceName("holmes-engine-mgmt"); msinfo.setVersion("v1"); msinfo.setUrl("/api/holmes-engine-mgmt/v1"); + msinfo.setPath("/api/holmes-engine-mgmt/v1"); msinfo.setProtocol("REST"); msinfo.setVisualRange("0|1"); + msinfo.setLb_policy("round-robin"); msinfo.setEnable_ssl(HttpsUtils.isHttpsEnabled()); Set<Node> nodes = new HashSet<>(); Node node = new Node(); node.setIp(serviceAddrInfo[0]); node.setPort("9102"); + /* Following codes will cause an unregistration from MSB (due to MSB malfunction), comment them for now node.setCheckType("HTTP"); node.setCheckUrl(String.format(msbAddrTemplate, serviceAddrInfo[0], "9102")); node.setCheckTimeOut("60s"); node.setCheckInterval("60s"); + */ nodes.add(node); msinfo.setNodes(nodes); return msinfo; |