-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
tools: update tikv-control.md #807
Conversation
add how to use tikv-ctl to modify config dynamically
tools/tikv-control.md
Outdated
$ tikv-ctl modify-tikv-config -m kvdb -n max_background_jobs -v 8 | ||
success! | ||
$ tikv-ctl modify-tikv-config -m raftdb -n default.disable_auto_compactions -v true | ||
success! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add example to modify RocksDB's block-cache-size for a given column family.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@CaitinChen PTAL. And need your help to translate it, thx a lot!😉 |
tools/tikv-control.md
Outdated
|
||
### 动态修改 TiKV 的 RocksDB 相关配置 | ||
|
||
`modify-tikv-config`命令可以动态修改配置参数,暂时仅支持对于 RocksDB 相关参数的动态更改。通过 `-m` 参数可以指定要修改的 RocksDB,有 `kvdb` 和 `raftdb` 两个值可以选择。`-n` 用于指定配置名,`-v` 用于指定配置值,其中配置名可以参考[TiKV 配置模版](https://github.com/pingcap/tikv/blob/master/etc/config-template.toml#L213-L500)中[rocksdb]和[raftdb]下的参数,分别对应`kvdb`和`raftdb`。同时还可以通过`default|write|lock + . + 参数名`的形式来指定的不同 CF 的配置(对于`kvdb`有`default|write|lock`可以选择,对于`raftdb`仅有`default`可以选择。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add necessary whitespaces between Chinese and English characters in the text:
- After
modify-tikv-config
- Between "参考" and [TiKV 配置模版]
- Left and right of both [rocksdb] and [raftdb]
- 对应
kvdb
和raftdb
: left and right of bothkvdb
andraftdb
default|write|lock + . + 参数名
- 对于
kvdb
有default|write|lock
可以选择,对于raftdb
仅有default
可以选择
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
add how to use tikv-ctl to modify config dynamically