gyfora commented on code in PR #686:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/686#discussion_r1369777698


##########
flink-autoscaler/src/main/java/org/apache/flink/autoscaler/config/AutoScalerOptions.java:
##########
@@ -151,6 +151,36 @@ private static ConfigOptions.OptionBuilder 
autoScalerConfig(String key) {
                     .withDescription(
                             "Lag threshold which will prevent unnecessary 
scalings while removing the pending messages responsible for the lag.");
 
+    public static final ConfigOption<Duration> 
OBSERVE_TRUE_PROCESSING_RATE_LAG_THRESHOLD =
+            autoScalerConfig("observed-true-processing-rate.lag-threshold")
+                    .durationType()
+                    .defaultValue(Duration.ofSeconds(30))
+                    .withDeprecatedKeys(
+                            deprecatedOperatorConfigKey(
+                                    
"observed-true-processing-rate.lag-threshold"))

Review Comment:
   I would ideally prefer all config keys to work with the "old" syntax at 
least in the 1.7.0 release. After that we don't have to define the deprecated 
keys for new configs but it should be somewhat gradual :) 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to