Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
7 changes: 7 additions & 0 deletions configure-store-limit.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ tiup ctl:v<CLUSTER_VERSION> pd store limit all 5 add-peer // All stores
tiup ctl:v<CLUSTER_VERSION> pd store limit all 5 remove-peer // All stores can at most delete 5 peers per minute.
```

Starting from v8.5.5 and v9.0.0, you can set the speed limit for removing-peers operations for all stores of a specific storage engine type, as shown in the following examples:

```bash
tiup ctl:v<CLUSTER_VERSION> pd store limit all engine tikv 5 remove-peer // All TiKV stores can at most remove 5 peers per minute.
tiup ctl:v<CLUSTER_VERSION> pd store limit all engine tiflash 5 remove-peer // All TiFlash stores can at most remove 5 peers per minute.
```

### Set limit for a single store

To set the speed limit for a single store, run the following commands:
Expand Down
20 changes: 11 additions & 9 deletions pd-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -1235,15 +1235,17 @@ store weight 1 5 10
You can set the scheduling speed of stores by using `store limit`. For more details about the principles and usage of `store limit`, see [`store limit`](/configure-store-limit.md).

```bash
>> store limit // Show the speed limit of adding-peer operations and the limit of removing-peer operations per minute in all stores
>> store limit add-peer // Show the speed limit of adding-peer operations per minute in all stores
>> store limit remove-peer // Show the limit of removing-peer operations per minute in all stores
>> store limit all 5 // Set the limit of adding-peer operations to 5 and the limit of removing-peer operations to 5 per minute for all stores
>> store limit 1 5 // Set the limit of adding-peer operations to 5 and the limit of removing-peer operations to 5 per minute for store 1
>> store limit all 5 add-peer // Set the limit of adding-peer operations to 5 per minute for all stores
>> store limit 1 5 add-peer // Set the limit of adding-peer operations to 5 per minute for store 1
>> store limit 1 5 remove-peer // Set the limit of removing-peer operations to 5 per minute for store 1
>> store limit all 5 remove-peer // Set the limit of removing-peer operations to 5 per minute for all stores
>> store limit // Show the speed limit of adding-peer operations and the limit of removing-peer operations per minute in all stores
>> store limit add-peer // Show the speed limit of adding-peer operations per minute in all stores
>> store limit remove-peer // Show the limit of removing-peer operations per minute in all stores
>> store limit all 5 // Set the limit of adding-peer operations to 5 and the limit of removing-peer operations to 5 per minute for all stores
>> store limit 1 5 // Set the limit of adding-peer operations to 5 and the limit of removing-peer operations to 5 per minute for store 1
>> store limit all 5 add-peer // Set the limit of adding-peer operations to 5 per minute for all stores
>> store limit 1 5 add-peer // Set the limit of adding-peer operations to 5 per minute for store 1
>> store limit 1 5 remove-peer // Set the limit of removing-peer operations to 5 per minute for store 1
>> store limit all 5 remove-peer // Set the limit of removing-peer operations to 5 per minute for all stores
>> store limit all engine tikv 5 remove-peer // Starting from v8.5.5 and v9.0.0, you can set the speed limit of removing-peer operations for all TiKV stores. This example sets the speed limit of removing-peer operations for all TiKV stores to 5 per minute.
>> store limit all engine tiflash 5 remove-peer // Starting from v8.5.5 and v9.0.0, you can set the speed limit of removing-peer operations for all TiFlash stores. This example sets the speed limit of removing-peer operations for all TiFlash stores to 5 per minute.
```

> **Note:**
Expand Down