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

pd-ctl: add topsize command and change the default value of limit to 16 #627

Merged
merged 4 commits into from
Sep 27, 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
31 changes: 23 additions & 8 deletions tools/pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -463,60 +463,75 @@ Usage:

### `region topread [limit]`

Use this command to list Regions with top read flow. The default value of the limit is 10.
Use this command to list Regions with top read flow. The default value of the limit is 16.

Usage:

```bash
>> region topread
{
"count": 10,
"count": 16,
"regions": [......],
}
```

### `region topwrite [limit]`

Use this command to list Regions with top write flow. The default value of the limit is 10.
Use this command to list Regions with top write flow. The default value of the limit is 16.

Usage:

```bash
>> region topwrite
{
"count": 10,
"count": 16,
"regions": [......],
}
```

### `region topconfver [limit]`

Use this command to list Regions with top conf version. The default value of the limit is 10.
Use this command to list Regions with top conf version. The default value of the limit is 16.

Usage:

```bash
>> region topconfver
{
"count": 10,
"count": 16,
"regions": [......],
}
```

### `region topversion [limit]`

Use this command to list Regions with top version. The default value of the limit is 10.
Use this command to list Regions with top version. The default value of the limit is 16.

Usage:

```bash
>> region topversion
{
"count": 10,
"count": 16,
"regions": [......],
}
```

### `region topsize [limit]`

Use this command to list Regions with top approximate size. The default value of the limit is 16.

Usage:

```bash
>> region topsize
{
"count": 16,
"regions": [......],
}

```

### `region check [miss-peer | extra-peer | down-peer | pending-peer | incorrect-ns]`

Use this command to check the Regions in abnormal conditions.
Expand Down