-
Notifications
You must be signed in to change notification settings - Fork 728
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
schedule: revise region_scatter distribution for multi groups (#3422) #3621
schedule: revise region_scatter distribution for multi groups (#3422) #3621
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
@Yisaer you're already a collaborator in bot's repo. |
Kudos, SonarCloud Quality Gate passed! |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 1ff15bc
|
Codecov Report
@@ Coverage Diff @@
## release-5.0 #3621 +/- ##
===============================================
- Coverage 74.65% 74.58% -0.07%
===============================================
Files 245 245
Lines 24149 24178 +29
===============================================
+ Hits 18028 18034 +6
- Misses 4509 4523 +14
- Partials 1612 1621 +9
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
cherry-pick #3422 to release-5.0
You can switch your code base to this Pull Request by using git-extras:
# In pd repo: git pr https://github.com/tikv/pd/pull/3621
After apply modifications, you can push your change to this PR via:
Signed-off-by: Song Gao disxiaofei@163.com
What problem does this PR solve?
ref pingcap/tidb#22788
Currently region-scatter didn't work well for multi regions in different groups.
For example, there are 50 regions and 6 stores in the cluster. Each region belong to a dedicated group.
region scatter may locate them in the
store1/store2/store3
. Thus from each region in the group, the distribution is well. And for the whole cluster, the distribution is not well.What is changed and how it works?
During region scatter, we should consider whether the target store already have the most peer or leader, if it is, we should skip it.
Check List
Tests
I also tested with the testcases in this document: https://docs.google.com/document/d/1cGZU2DCm0UuIueqAQP8TGqTivyavCvB_QiwIzqvP_rA/edit
All the test case results didn't change.
Release note