tillrohrmann commented on a change in pull request #8698:
[FLINK-12669][runtime] Implement FixedDelayRestartBackoffTimeStrategy
URL: https://github.com/apache/flink/pull/8698#discussion_r293368774
##########
File path:
flink-core/src/main/java/org/apache/flink/configuration/RestartBackoffTimeStrategyOptions.java
##########
@@ -54,4 +54,22 @@
.key("restart-backoff-time-strategy.failure-rate.backoff-time")
.defaultValue("1 min")
.withDescription("Backoff time between two consecutive restart
attempts.");
+
+ /**
+ * Maximum number of attempts the fixed delay restart strategy will try
before failing a job.
+ */
+ @PublicEvolving
+ public static final ConfigOption<Integer>
RESTART_BACKOFF_TIME_STRATEGY_FIXED_DELAY_ATTEMPTS = ConfigOptions
+ .key("restart-backoff-time-strategy.fixed-delay.attempts")
+ .defaultValue(Integer.MAX_VALUE)
+ .withDescription("Maximum number of attempts the fixed delay
restart strategy will try before failing a job.");
+
+ /**
+ * Backoff time between two consecutive restart attempts in
FixedDelayRestartBackoffTimeStrategy.
+ */
+ @PublicEvolving
+ public static final ConfigOption<Long>
RESTART_BACKOFF_TIME_STRATEGY_FIXED_DELAY_BACKOFF_TIME = ConfigOptions
+ .key("restart-backoff-time-strategy.fixed-delay.backoff-time")
+ .defaultValue(10_000L)
Review comment:
Let's set the default value to `0`. With queued scheduling there is no
longer a strict need for a delay.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services