Skip to content

Commit 13bb515

Browse files
authored
br: add variable tidb_advancer_check_point_lag_limit to control log backup checkpoint lag (#21481)
1 parent 2af577d commit 13bb515

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

system-variables.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,16 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count';
10441044
- Unit: Bytes
10451045
- This variable is used to control the threshold at which the TiDB server prefers to send read requests to a replica in the same availability zone as the TiDB server when [`tidb_replica_read`](#tidb_replica_read-new-in-v40) is set to `closest-adaptive`. If the estimated result is higher than or equal to this threshold, TiDB prefers to send read requests to a replica in the same availability zone. Otherwise, TiDB sends read requests to the leader replica.
10461046
1047+
### tidb_advancer_check_point_lag_limit <span class="version-mark">New in v8.5.5 and v9.0.0</span>
1048+
1049+
- Scope: GLOBAL
1050+
- Persists to cluster: Yes
1051+
- Applies to hint [SET_VAR](/optimizer-hints.md#set_varvar_namevar_value): No
1052+
- Type: Duration
1053+
- Default value: `48h0m0s`
1054+
- Range: `[1s, 8760h0m0s]`
1055+
- This variable controls the maximum allowed checkpoint lag for a log backup task. If a task's checkpoint lag exceeds this limit, TiDB Advancer pauses the task.
1056+
10471057
### tidb_allow_tiflash_cop <span class="version-mark">New in v7.3.0</span>
10481058
10491059
- Scope: SESSION | GLOBAL

0 commit comments

Comments
 (0)