gyfora commented on code in PR #921: URL: https://github.com/apache/flink-kubernetes-operator/pull/921#discussion_r1881479228
########## flink-autoscaler/src/main/java/org/apache/flink/autoscaler/ScalingMetricEvaluator.java: ########## @@ -296,8 +297,16 @@ protected static void computeProcessingRateThresholds( upperUtilization = 1.0; lowerUtilization = 0.0; } else { - upperUtilization = targetUtilization + utilizationBoundary; - lowerUtilization = targetUtilization - utilizationBoundary; + if (conf.getOptional(UTILIZATION_MAX).isPresent() + || conf.getOptional(UTILIZATION_MIN).isPresent() + || conf.getOptional(TARGET_UTILIZATION_BOUNDARY).isEmpty()) { + upperUtilization = conf.get(UTILIZATION_MAX); + lowerUtilization = conf.get(UTILIZATION_MIN); Review Comment: I think we should not hard-code the defaults in the MIN_MAX options but it should be dynamically computed based on the target. For example if the users sets target to 0.4 and min to 0.1, then it doesn't make sense to have the default max on 1.. Previously the boundary was 0.4 by default I think we should preserve this -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org