Skip to content

Commit 3fcb77f

Browse files
authored
feat: add max_running_procedures (#1615)
1 parent e7e2bd2 commit 3fcb77f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docs/user-guide/deployments/configuration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,11 @@ max_retry_times = 12
688688
## Initial retry delay of procedures, increases exponentially
689689
retry_delay = "500ms"
690690

691+
## Max running procedures.
692+
## The maximum number of procedures that can be running at the same time.
693+
## If the number of running procedures exceeds this limit, the procedure will be rejected.
694+
max_running_procedures = 128
695+
691696
# Failure detectors options.
692697
[failure_detector]
693698

@@ -797,6 +802,7 @@ backoff_deadline = "5mins"
797802
| `procedure` | -- | -- | Procedure storage options. |
798803
| `procedure.max_retry_times` | Integer | `12` | Procedure max retry time. |
799804
| `procedure.retry_delay` | String | `500ms` | Initial retry delay of procedures, increases exponentially |
805+
| `procedure.max_running_procedures` | Integer | `128` | The maximum number of procedures that can be running at the same time. If the number of running procedures exceeds this limit, the procedure will be rejected. |
800806
| `failure_detector` | -- | -- | -- |
801807
| `failure_detector.threshold` | Float | `8.0` | The threshold value used by the failure detector to determine failure conditions. |
802808
| `failure_detector.min_std_deviation` | String | `100ms` | The minimum standard deviation of the heartbeat intervals, used to calculate acceptable variations. |

i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments/configuration.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,12 @@ max_retry_times = 12
677677
## 程序的初始重试延迟
678678
retry_delay = "500ms"
679679

680+
## 最大运行程序数。
681+
## 同一时间可以运行的程序最大数量。
682+
## 如果运行的程序数量超过此限制,程序将被拒绝。
683+
max_running_procedures = 128
684+
685+
680686
# Failure detector 选项
681687
[failure_detector]
682688

@@ -768,6 +774,7 @@ backoff_deadline = "5mins"
768774
| `procedure` | -- | -- | |
769775
| `procedure.max_retry_times` | 整数 | `12` | Procedure 的最大重试次数。 |
770776
| `procedure.retry_delay` | 字符串 | `500ms` | Procedure 初始重试延迟,延迟会指数增长。 |
777+
| `procedure.max_running_procedures` | Integer | `128` | 同一时间可以运行的程序最大数量。如果运行的程序数量超过此限制,程序将被拒绝。 |
771778
| `failure_detector` | -- | -- | 故障检测选项。 |
772779
| `failure_detector.threshold` | 浮点数 | `8.0` | Failure detector 用来判断故障条件的阈值。 |
773780
| `failure_detector.min_std_deviation` | 字符串 | `100ms` | 心跳间隔的最小标准差,用于计算可接受的变动范围。 |

0 commit comments

Comments
 (0)