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

TiKV: add quota limiter doc in config #8648

Merged
merged 11 commits into from
Mar 25, 2022
33 changes: 33 additions & 0 deletions tikv-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -1569,3 +1569,36 @@ Raft Engine 相关的配置项。

+ 开启流水线式加悲观锁流程。开启该功能后,TiKV 在检测数据满足加锁要求后,立刻通知 TiDB 执行后面的请求,并异步写入悲观锁,从而降低大部分延迟,显著提升悲观事务的性能。但有较低概率出现悲观锁异步写入失败的情况,可能会导致悲观事务提交失败。
+ 默认值:true

## quota

前端限流的相关配置,以下参数的限制采用近似统计。

> **警告:**
>
> Quota Limiter 目前为实验特性,设置较小的限额可能发生性能下降的现象。

### `forefront-cpu-time`

+ 限制处理前端请求的 CPU 耗时,单位为 millicpu,即 1500 代表 1.5vCPU。
+ 默认值:0,即不设限

### `forefront-req-rate`

+ 限制处理前端请求的速率,被限制的前端请求仅包含事务读写相关的请求。
+ 默认值:0,即不设限

### `write-kvs`

+ 限制写入的键值对速率,被限制写入的键值对仅包含事务写入的部分。
+ 默认值:0,即不设限

### `write-bandwidth`

+ 限制写入带宽,被限制的写入带宽仅包含事务写入的部分。
+ 默认值:0kb,即不设限

### `read-bandwidth`

+ 限制读取带宽,被限制的读取带宽仅包含事务读和 coprocessor 相关的部分。
+ 默认值:0kb,即不设限