Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add config unit for tidb_adaptive_closest_read_threshold #13697

Merged
merged 2 commits into from
May 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ mysql> SHOW GLOBAL VARIABLES LIKE 'max_prepared_stmt_count';
- 作用域:SESSION | GLOBAL
- 是否持久化到集群:是
- 默认值:`4096`
- 取值范围:`[0, 9223372036854775807]`
- 取值范围:`[0, 9223372036854775807]`,单位为 Byte。
qiancai marked this conversation as resolved.
Show resolved Hide resolved
- 这个变量用于控制当 [`replica-read`](#tidb_replica_read-从-v40-版本开始引入) 设置为 `closest-adaptive` 时,优先将读请求发送至 TiDB server 所在区域副本的阈值。当读请求预估的返回结果的大小超过此阈值时,TiDB 会将读请求优先发送至同一可用区的副本,否则会发送至 leader 副本。

### `tidb_allow_batch_cop` <span class="version-mark">从 v4.0 版本开始引入</span>
Expand Down