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

tools: update tikv-control.md #807

Merged
merged 3 commits into from
Jul 16, 2018
Merged

tools: update tikv-control.md #807

merged 3 commits into from
Jul 16, 2018

Conversation

Connor1996
Copy link
Member

add how to use tikv-ctl to modify config dynamically

add how to use tikv-ctl to modify config dynamically
$ 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!
Copy link
Contributor

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.

Copy link
Contributor

@zhangjinpeng87 zhangjinpeng87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Connor1996
Copy link
Member Author

@CaitinChen PTAL. And need your help to translate it, thx a lot!😉


### 动态修改 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`可以选择。
Copy link
Member

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]
  • 对应kvdbraftdb: left and right of both kvdb and raftdb
  • default|write|lock + . + 参数名
  • 对于kvdbdefault|write|lock可以选择,对于raftdb仅有default可以选择

Copy link
Member

@lilin90 lilin90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants