TiKV balance regions by the commands sent by PD. These commands are called scheduling operators. PD makes the scheduling operators based on the information gathered from TiKV and scheduling configurations.
in pd-ctl
is usually used to set limits of the total number of various operators. However, *-schedule-limit
might cause performance bottlenecks, because it applies to the entire cluster.
PD provides two methods to configure scheduling rate limits on stores as follows:
-
The configuration change only applies to the stores that are started afterward. If you want to apply this change to all stores, you need to restart all TiKV stores. If you want to apply this change immediately, see the below.
store-balance-rate
specifies the maximum number of scheduling tasks allowed for each store per minute. The scheduling step includes adding peers or learners.