Skip to content

Commit c8e3fff

Browse files
rajesh-battalaSateesh Chodapuneedi
authored andcommitted
CLOUDSTACK-1849 Creation of LB Health Check policy fails if the value of Unhealthy Threshold parameter is 3 or more.
Signed-off-by: Sateesh Chodapuneedi <sateesh@apache.org>
1 parent 38b4f84 commit c8e3fff

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugins/network-elements/netscaler/src/com/cloud/network/resource/NetscalerResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2297,6 +2297,7 @@ private void addLBMonitor(String nsMonitorName, String lbProtocol, HealthCheckPo
22972297
}
22982298

22992299
csMon.set_interval(hcp.getHealthcheckInterval());
2300+
csMon.set_retries(Math.max(hcp.getHealthcheckThresshold(), hcp.getUnhealthThresshold()) + 1);
23002301
csMon.set_resptimeout(hcp.getResponseTime());
23012302
csMon.set_failureretries(hcp.getUnhealthThresshold());
23022303
csMon.set_successretries(hcp.getHealthcheckThresshold());

0 commit comments

Comments
 (0)