Skip to content

Commit 5b4c625

Browse files
authored
Add circuit breaker variable (#20129)
1 parent 9457487 commit 5b4c625

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

system-variables.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6298,6 +6298,15 @@ For details, see [Identify Slow Queries](/identify-slow-queries.md).
62986298
> - `PARALLEL` and `PARALLEL-FAST` modes are incompatible with [`tidb_tso_client_batch_max_wait_time`](#tidb_tso_client_batch_max_wait_time-new-in-v530) and [`tidb_enable_tso_follower_proxy`](#tidb_enable_tso_follower_proxy-new-in-v530). If either [`tidb_tso_client_batch_max_wait_time`](#tidb_tso_client_batch_max_wait_time-new-in-v530) is set to a non-zero value or [`tidb_enable_tso_follower_proxy`](#tidb_enable_tso_follower_proxy-new-in-v530) is enabled, configuring `tidb_tso_client_rpc_mode` does not take effect, and TiDB always works in `DEFAULT` mode.
62996299
> - `PARALLEL` and `PARALLEL-FAST` modes are designed to reduce the average time for retrieving TS in TiDB. In situations with significant latency fluctuations, such as long-tail latency or latency spikes, these two modes might not provide any remarkable performance improvements.
63006300
6301+
### tidb_cb_pd_metadata_error_rate_threshold_ratio <span class="version-mark">New in v9.0.0</span>
6302+
6303+
- Scope: GLOBAL
6304+
- Persists to cluster: Yes
6305+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
6306+
- Default value: `0`
6307+
- Range: `[0, 1]`
6308+
- This variable controls when TiDB triggers the circuit breaker. Setting a value of `0` (default) disables the circuit breaker. Setting a value between `0.01` and `1` enables it, causing the circuit breaker to trigger when the error rate of specific requests sent to PD reaches or exceeds the threshold.
6309+
63016310
### tidb_ttl_delete_rate_limit <span class="version-mark">New in v6.5.0</span>
63026311
63036312
> **Note:**

0 commit comments

Comments
 (0)