Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#16102
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <[email protected]>
  • Loading branch information
JaySon-Huang authored and ti-chi-bot committed Jan 11, 2024
1 parent e4e4e02 commit cb095d4
Showing 1 changed file with 36 additions and 7 deletions.
43 changes: 36 additions & 7 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,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 @@ -480,8 +473,44 @@ I/O rate limiter 相关的配置项。
### `mode`

+ 确定哪些类型的 I/O 操作被计数并受 `max-bytes-per-sec` 阈值的限流。当前 TiKV 只支持 write-only 只写模式。
<<<<<<< HEAD
+ 可选值:write-only
+ 默认值:write-only
=======
+ 可选值:`"read-only"``"write-only"``"all-io"`
+ 默认值:`"write-only"`

## pd

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

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

### `endpoints`

+ PD 的地址。当指定多个地址时,需要用逗号 `,` 分隔。
+ 默认值:`["127.0.0.1:2379"]`

### `retry-interval`

+ 设置 PD 连接的重试间隔。
+ 默认值:`"300ms"`

### `retry-log-every`

+ 指定 PD 客户端在观察到错误时跳过报错的频率。例如,当配置项值为 `5` 时,每次 PD 观察到错误时,将跳过 4 次报错,直到第 5 次错误时才报告。
+ 要禁用此功能,请将值设置为 `1`
+ 默认值:`10`

### `retry-max-count`

+ 初始化 PD 连接的最大重试次数。
+ 要禁用重试,请将该值设置为 `0`。要解除重试次数的限制,请将该值设置为 `-1`
+ 默认值:`-1`
>>>>>>> 26e8d197d5 (move tikv configure item `pd.enable-forwarding` to correct place (#16102))
## raftstore

Expand Down

0 comments on commit cb095d4

Please sign in to comment.