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

move tikv configure item pd.enable-forwarding to correct place #16102

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Changes from all commits
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
14 changes: 7 additions & 7 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ TiKV 配置文件比命令行参数支持更多的选项。你可以在 [etc/con
+ 如果把此参数设置为非 `0` 的值,TiKV 最多会保留 `max-backups` 中指定的数量的旧日志文件。比如,如果该值设置为 `7`,TiKV 最多会保留 7 个旧的日志文件。
+ 默认值:0

### `pd.enable-forwarding` <span class="version-mark">从 v5.0.0 版本开始引入</span>

+ 控制 TiKV 中的 PD client 在疑似网络隔离的情况下是否通过 follower 将请求转发给 leader。
+ 默认值:false
+ 如果确认环境存在网络隔离的可能,开启这个参数可以减少服务不可用的窗口期。
+ 如果无法准确判断隔离、网络中断、宕机等情况,这个机制存在误判情况从而导致可用性、性能降低。如果网络中从未发生过网络故障,不推荐开启此选项。

## server

服务器相关的配置项。
Expand Down Expand Up @@ -570,6 +563,13 @@ I/O rate limiter 相关的配置项。

## pd

### `enable-forwarding` <span class="version-mark">从 v5.0.0 版本开始引入</span>

+ 控制 TiKV 中的 PD client 在疑似网络隔离的情况下是否通过 follower 将请求转发给 leader。
+ 默认值:false
+ 如果确认环境存在网络隔离的可能,开启这个参数可以减少服务不可用的窗口期。
+ 如果无法准确判断隔离、网络中断、宕机等情况,这个机制存在误判情况从而导致可用性、性能降低。如果网络中从未发生过网络故障,不推荐开启此选项。

### `endpoints`

+ PD 的地址。当指定多个地址时,需要用逗号 `,` 分隔。
Expand Down