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: add checking Region properties to TiKV Control #754

Merged
merged 1 commit into from
Jun 5, 2018
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: 14 additions & 0 deletions tools/tikv-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,17 @@ all regions are healthy
```

命令执行成功会打印上面的信息,否则会打印出有错误的 Region 列表。目前可以检出的错误包括 last index、commit index 和 apply index 之间的不匹配,以及 Raft log 的丢失。其他一些情况,比如 Snapshot 文件损坏等仍然需要后续的支持。

### 查看 region 的 properties 信息

本地查看部署在 /path/to/tikv 的 tikv 上面 region 2 的 properties 信息:

```bash
$ tikv-ctl --db /path/to/tikv/data/db region-properties -r 2
```

在线查看运行在 127.0.0.1:20160 的 tikv 上面 region 2 的 properties 信息:

```bash
$ tikv-ctl --host 127.0.0.1:20160 region-properties -r 2
```