Skip to content

Commit

Permalink
tools: add checking Region properties to TiKV Control (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 authored and breezewish committed Jun 12, 2018
1 parent 98a48fb commit 622b38f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tools/tikv-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,4 +160,18 @@ $ tikv-ctl --db /path/to/tikv/db bad-regions
all regions are healthy
```
If the command is successfully executed, it prints the above information. If the command fails, it prints the list of bad Regions. Currently, the errors that can be detected include the mismatches between `last index`, `commit index` and `apply index`, and the loss of Raft log. Other conditions like the damage of snapshot files still need further support.
If the command is successfully executed, it prints the above information. If the command fails, it prints the list of bad Regions. Currently, the errors that can be detected include the mismatches between `last index`, `commit index` and `apply index`, and the loss of Raft log. Other conditions like the damage of snapshot files still need further support.
### View Region properties
- To view in local the properties of Region 2 on the TiKV instance that is deployed in `/path/to/tikv`:
```bash
$ tikv-ctl --db /path/to/tikv/data/db region-properties -r 2
```
- To view online the properties of Region 2 on the TiKV instance that is running on `127.0.0.1:20160`:
```bash
$ tikv-ctl --host 127.0.0.1:20160 region-properties -r 2
```

0 comments on commit 622b38f

Please sign in to comment.