diff --git a/configure-store-limit.md b/configure-store-limit.md index 33419c4ca28f0..c4802ac93e8c1 100644 --- a/configure-store-limit.md +++ b/configure-store-limit.md @@ -53,6 +53,13 @@ tiup ctl:v pd store limit all 5 add-peer // All stores tiup ctl:v pd store limit all 5 remove-peer // All stores can at most delete 5 peers per minute. ``` +Starting from v8.5.5, you can set the speed limit for removing-peer operations for all stores of a specific storage engine type, as shown in the following examples: + +```bash +tiup ctl:v pd store limit all engine tikv 5 remove-peer // All TiKV stores can at most remove 5 peers per minute. +tiup ctl:v 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: diff --git a/pd-control.md b/pd-control.md index 82bcd7fc6123c..8a13a84aa37c5 100644 --- a/pd-control.md +++ b/pd-control.md @@ -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, 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, 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:**