flashJd commented on code in PR #728:
URL: 
https://github.com/apache/flink-kubernetes-operator/pull/728#discussion_r1423903323


##########
flink-autoscaler/src/main/java/org/apache/flink/autoscaler/config/AutoScalerOptions.java:
##########
@@ -72,6 +72,15 @@ private static ConfigOptions.OptionBuilder 
autoScalerConfig(String key) {
                     .withDescription(
                             "Stabilization period in which no new scaling will 
be executed");
 
+    public static final ConfigOption<List<String>> FORBID_PERIOD =
+            autoScalerConfig("forbid.periods")
+                    .stringType()
+                    .asList()
+                    .defaultValues()
+                    
.withDeprecatedKeys(deprecatedOperatorConfigKey("forbid.periods"))
+                    .withDescription(
+                            "A (semicolon-separated) list of certain times of 
the day during which autoscaling is forbidden, 
10:00:00-11:00:00;21:30:00-22:30:00 for example");

Review Comment:
   I've seached several time scheduler framework, `Quartz Scheduler` seems to 
be feasible.
   1. It supports `certain time of day` `certain days of the week` `certain 
days of the month` , etc.
   
https://github.com/quartz-scheduler/quartz/blob/main/docs/introduction.adoc#job-scheduling
   2. Here is the implementation: 
   
https://github.com/quartz-scheduler/quartz/blob/a5c4d27e963f51097f9b2777489d310a88897ca4/quartz/src/main/java/org/quartz/Calendar.java#L21-L41
   
https://github.com/quartz-scheduler/quartz/blob/a5c4d27e963f51097f9b2777489d310a88897ca4/quartz/src/main/java/org/quartz/impl/calendar/CronCalendar.java#L10-L26
   
   



-- 
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

Reply via email to