Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 什么叫replica-schedule调度,和region-schedule有什么区别?

PD Configuration File Description | PingCAP Documentation Center
Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 什么叫replica-schedule调度,和region-schedule有什么区别?
PD Configuration File Description | PingCAP Documentation Center
The main task of replica-schedule is to ensure that the number of replicas equals the set number of replicas, for example, 3.
To add a note: this mainly handles situations like adding a peer when one goes down, or deleting an extra peer if there are too many.
Region-schedule is mainly responsible for the distribution of region peers.
This involves ensuring that the peer distribution meets label requirements and determining which TiKV to place them on, among other things.
If one out of three stores fails, is the operator that replicates the follower to the remaining two stores considered a replica?
If one out of three stores fails, nothing can be done, and it should be impossible to replenish the replica. When a store is down, the fix-peer function is called, which will select a store. If one out of three fails, the remaining two both have replicas, so no store can be selected, and the add-peer operator cannot be generated.
It should be taken literally, one is a replica, and the other is a storage unit.
Limit the speed of scheduling generated by ReplicaChecker and RuleChecker.
Still a bit confused
Manually scheduling Region 1 to store 2, 3, 4 like this belongs to region-schedule, right?
operator add transfer-region 1 2 3 4
The image is not available for translation. Please provide the text content directly.
One affects the speed of TiKV offline, and the other affects the speed of region balancing. Regions generally have 3 replicas.
The region-schedule-limit restricts the number of operators generated during balance-region. Another impact is the speed of replica replenishment.
The default value of tidb_enable_clustered_index
is INT_ONLY
, which means that only integer primary keys will use clustered indexes.
replica-schedule: Replica distribution, region-schedule: Region distribution
replica-schedule: Replica scheduling, region-schedule: Region scheduling
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.