Skip to content

Commit

Permalink
[FLINK-33736][Scheduler] Update default value of exponential-delay.ma…
Browse files Browse the repository at this point in the history
…x-backoff and exponential-delay.backoff-multiplier
  • Loading branch information
1996fanrui committed Dec 26, 2023
1 parent 860db31 commit d9e8b2a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/content.zh/docs/ops/state/task_failure_recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ restart-strategy.type: exponential-delay
```yaml
restart-strategy.exponential-delay.initial-backoff: 10 s
restart-strategy.exponential-delay.max-backoff: 2 min
restart-strategy.exponential-delay.backoff-multiplier: 2.0
restart-strategy.exponential-delay.backoff-multiplier: 1.4
restart-strategy.exponential-delay.reset-backoff-threshold: 10 min
restart-strategy.exponential-delay.jitter-factor: 0.1
restart-strategy.exponential-delay.attempts-before-reset-backoff: 10
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/ops/state/task_failure_recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ For example:
```yaml
restart-strategy.exponential-delay.initial-backoff: 10 s
restart-strategy.exponential-delay.max-backoff: 2 min
restart-strategy.exponential-delay.backoff-multiplier: 2.0
restart-strategy.exponential-delay.backoff-multiplier: 1.4
restart-strategy.exponential-delay.reset-backoff-threshold: 10 min
restart-strategy.exponential-delay.jitter-factor: 0.1
restart-strategy.exponential-delay.attempts-before-reset-backoff: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</tr>
<tr>
<td><h5>restart-strategy.exponential-delay.backoff-multiplier</h5></td>
<td style="word-wrap: break-word;">2.0</td>
<td style="word-wrap: break-word;">1.5</td>
<td>Double</td>
<td>Backoff value is multiplied by this value after every failure,until max backoff is reached if <code class="highlighter-rouge">restart-strategy.type</code> has been set to <code class="highlighter-rouge">exponential-delay</code>.</td>
</tr>
Expand All @@ -34,7 +34,7 @@
</tr>
<tr>
<td><h5>restart-strategy.exponential-delay.max-backoff</h5></td>
<td style="word-wrap: break-word;">5 min</td>
<td style="word-wrap: break-word;">1 min</td>
<td>Duration</td>
<td>The highest possible duration between restarts if <code class="highlighter-rouge">restart-strategy.type</code> has been set to <code class="highlighter-rouge">exponential-delay</code>. It can be specified using notation: "1 min", "20 s"</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public class RestartStrategyOptions {
public static final ConfigOption<Duration> RESTART_STRATEGY_EXPONENTIAL_DELAY_MAX_BACKOFF =
ConfigOptions.key("restart-strategy.exponential-delay.max-backoff")
.durationType()
.defaultValue(Duration.ofMinutes(5))
.defaultValue(Duration.ofMinutes(1))
.withDescription(
Description.builder()
.text(
Expand All @@ -185,7 +185,7 @@ public class RestartStrategyOptions {
public static final ConfigOption<Double> RESTART_STRATEGY_EXPONENTIAL_DELAY_BACKOFF_MULTIPLIER =
ConfigOptions.key("restart-strategy.exponential-delay.backoff-multiplier")
.doubleType()
.defaultValue(2.0)
.defaultValue(1.5)
.withDescription(
Description.builder()
.text(
Expand Down

0 comments on commit d9e8b2a

Please sign in to comment.