diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 29a39ab90db..6c75b4b802a 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -793,6 +793,15 @@ return; } } + + if(args.data.scaleUpDuration < args.data.interval) { + args.response.error("Duration of Scale Up Policy can not be less than Polling Interval."); + return; + } + if(args.data.scaleDownDuration < args.data.interval) { + args.response.error("Duration of Scale Down Policy can not be less than Polling Interval."); + return; + } //validation (end) ***** var scaleVmProfileResponse = [];