This is an automated email from the ASF dual-hosted git repository.
fanrui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d9e8b2a7be9 [FLINK-33736][Scheduler] Update default value of
exponential-delay.max-backoff and exponential-delay.backoff-multiplier
d9e8b2a7be9 is described below
commit d9e8b2a7be9c516bf497d4a68c39ac7f12e3b293
Author: Rui Fan <[email protected]>
AuthorDate: Sun Dec 3 12:09:20 2023 +0800
[FLINK-33736][Scheduler] Update default value of
exponential-delay.max-backoff and exponential-delay.backoff-multiplier
---
docs/content.zh/docs/ops/state/task_failure_recovery.md | 2 +-
docs/content/docs/ops/state/task_failure_recovery.md | 2 +-
.../generated/exponential_delay_restart_strategy_configuration.html | 4 ++--
.../java/org/apache/flink/configuration/RestartStrategyOptions.java | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/docs/content.zh/docs/ops/state/task_failure_recovery.md
b/docs/content.zh/docs/ops/state/task_failure_recovery.md
index f574cb50f7f..31af2859fce 100644
--- a/docs/content.zh/docs/ops/state/task_failure_recovery.md
+++ b/docs/content.zh/docs/ops/state/task_failure_recovery.md
@@ -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
diff --git a/docs/content/docs/ops/state/task_failure_recovery.md
b/docs/content/docs/ops/state/task_failure_recovery.md
index 16115fe144d..6f444b15461 100644
--- a/docs/content/docs/ops/state/task_failure_recovery.md
+++ b/docs/content/docs/ops/state/task_failure_recovery.md
@@ -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
diff --git
a/docs/layouts/shortcodes/generated/exponential_delay_restart_strategy_configuration.html
b/docs/layouts/shortcodes/generated/exponential_delay_restart_strategy_configuration.html
index 70114ef1485..407be492b5f 100644
---
a/docs/layouts/shortcodes/generated/exponential_delay_restart_strategy_configuration.html
+++
b/docs/layouts/shortcodes/generated/exponential_delay_restart_strategy_configuration.html
@@ -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>
@@ -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>
diff --git
a/flink-core/src/main/java/org/apache/flink/configuration/RestartStrategyOptions.java
b/flink-core/src/main/java/org/apache/flink/configuration/RestartStrategyOptions.java
index 2cc7820ba6d..5d957cc8c62 100644
---
a/flink-core/src/main/java/org/apache/flink/configuration/RestartStrategyOptions.java
+++
b/flink-core/src/main/java/org/apache/flink/configuration/RestartStrategyOptions.java
@@ -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(
@@ -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(