Skip to content

Commit

Permalink
tools: update operator Region split (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Oct 11, 2018
1 parent 7cbbbea commit 578c4cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ Success!

### `operator [show | add | remove]`

Use this command to view and control the scheduling operation.
Use this command to view and control the scheduling operation, split a Region, or merge Regions.

Usage:

Expand All @@ -380,6 +380,8 @@ Usage:
>> operator remove 1 // Remove the scheduling operation of Region 1
```

The splitting of Regions starts from the position as close as possible to the middle. You can locate this position using two strategies, namely "scan" and "approximate". The difference between them is that the former determines the middle key by scanning the Region, and the latter obtains the approximate position by checking the statistics recorded in the SST file. Generally, the former is more accurate, while the latter consumes less I/O and can be completed faster.

### `ping`

Use this command to view the time that `ping` PD takes.
Expand Down

0 comments on commit 578c4cb

Please sign in to comment.