AutoScale. To set a max value for metric thresholds which will not affect traffic. Reviewed-By: Devdeep Singh

This commit is contained in:
Vijay 2012-08-23 18:24:07 +05:30
parent 21bdac8940
commit c46890bc7b
1 changed files with 6 additions and 1 deletions

View File

@ -1855,7 +1855,12 @@ public class NetscalerResource implements ServerResource {
try {
monitor_metric_binding.set_monitorname(monitorName);
monitor_metric_binding.set_metric(counterName);
monitor_metric_binding.set_metricthreshold(1);
/*
* Setting it to max to make sure traffic is not affected due to 'LOAD' monitoring.
* For Ex. if CPU is tracked and CPU is greater than 80, it is still < than Integer.MAX_VALUE
* so traffic will continue to flow.
*/
monitor_metric_binding.set_metricthreshold(Integer.MAX_VALUE);
monitor_metric_binding.add(_netscalerService, monitor_metric_binding);
} catch (Exception e) {
// Ignore Exception on cleanup