diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 4d06813861d..54a1646ab79 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -798,6 +798,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 = [];