From decbd73e9488aa7be488778ade1e4356d4cd5f5d Mon Sep 17 00:00:00 2001 From: glorv Date: Fri, 5 May 2023 10:55:56 +0800 Subject: [PATCH] add config unit for tidb_adaptive_closest_read_threshold (#13697) --- system-variables.md | 1 + 1 file changed, 1 insertion(+) diff --git a/system-variables.md b/system-variables.md index 7905e050d345..c59a873168ba 100644 --- a/system-variables.md +++ b/system-variables.md @@ -584,6 +584,7 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count'; - 是否持久化到集群:是 - 默认值:`4096` - 取值范围:`[0, 9223372036854775807]` +- 单位:字节 - 这个变量用于控制当 [`replica-read`](#tidb_replica_read-从-v40-版本开始引入) 设置为 `closest-adaptive` 时,优先将读请求发送至 TiDB server 所在区域副本的阈值。当读请求预估的返回结果的大小超过此阈值时,TiDB 会将读请求优先发送至同一可用区的副本,否则会发送至 leader 副本。 ### `tidb_allow_batch_cop` 从 v4.0 版本开始引入