-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
copr: MPP balance regions between TiFlash nodes with continuity. #28906
Conversation
[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 submitting an approval review. |
@fzhedu PTAL. |
/run-all-tests |
@windtalker please take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM except let the TiDBEnableMPPBalanceWithContinuity be clear to mean read continous regions.
/run-all-tests |
/run-all-tests |
/merge |
@JinheLin: In response to this:
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. |
/merge |
/merge |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 2b28841
|
/cherrypick release-5.1-hotfix-tiflash-patch1 |
1 similar comment
/cherrypick release-5.1-hotfix-tiflash-patch1 |
@JinheLin can you please provide a docs PR for these two variables? Also tidb_mpp_balance_continuous_region_count is listed as hidden. We have a proposal to unhide variables. Can this be converted to visible? (Also: sorry I missed the ping. I should have made these comments during review!) |
OK, I will provide a docs PR this week. This variable can be converted to visible, it doesn't matter. |
What problem does this PR solve?
Problem Summary:
Regions balance between TiFlash nodes should take account of region’s physical continuity in TiFlash nodes for better read performance.
What is changed and how it works?
Proposal: Better read plan of region peer between TiFlash nodes
What's Changed:
Add a new balance strategy that take account of region's order:
Add two TiDB variables:
1.
tidb_enable_mpp_balance_with_continuous_region
indicates whether take account of region's order when doing MPP balance, default is ON.2.
tidb_enable_mpp_balance_with_continuous_region_count
indicates the region count assigned to a store each round when doing MPP balance, default is 20.Check List
Tests
Side effects
Documentation
Release note
Result
Disk read metric of TPCH-100 workload: