You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for the distribution issue of leaders among stores, we have the balance-leader-scheduler to address the uniformity issue.
for the distribution issue of peers among stores, we have the balance-region-schedule to address the uniformity issue.
while balance-region-schedule only consider the balance between all stores, without consider the roles(learner and follower) and the type of stores(tikv or tiflash ).
However, for TiFlash users, if the distribution of regions(learners) among TiFlash instances becomes unbalanced, it may lead to computational hotspots that slow down performance.
From the following logic, we can see balance-region-scheduler choose the source store order by region-score , and if the number of learner region on tiflash is small, the region-score of tiflash node should be always the smallest, which makes tiflash nodes could never get the chance to run balance-region, that leads the imbalance of peers on the tiflash nodes.
Feature Request
Describe your feature request related problem
Describe the feature you'd like
Currently,
balance-leader-scheduler
to address the uniformity issue.balance-region-schedule
to address the uniformity issue.while
balance-region-schedule
only consider the balance between all stores, without consider the roles(learner and follower) and the type of stores(tikv or tiflash ).However, for TiFlash users, if the distribution of regions(learners) among TiFlash instances becomes unbalanced, it may lead to computational hotspots that slow down performance.
From the following logic, we can see
balance-region-scheduler
choose the source store order byregion-score
, and if the number of learner region on tiflash is small, the region-score of tiflash node should be always the smallest, which makes tiflash nodes could never get the chance to runbalance-region
, that leads the imbalance of peers on the tiflash nodes.pd/pkg/schedule/schedulers/balance_region.go
Lines 139 to 144 in fca469c
In summary,I think we need a scheduler similar to
balance-learner-scheduler
to balance the distribution of learner nodes among the stores.The text was updated successfully, but these errors were encountered: