disagg: Add exclusive label for tiflash compute node#9849
Merged
ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom Feb 11, 2025
Merged
disagg: Add exclusive label for tiflash compute node#9849ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom
ti-chi-bot[bot] merged 2 commits intopingcap:masterfrom
Conversation
Contributor
Author
|
/hold |
09e3a5f to
9ecc9e5
Compare
2403116 to
3fd2deb
Compare
Contributor
Author
|
Depends on pingcap/tidb-engine-ext#420 |
Contributor
Author
|
/test pull-integration-test |
Contributor
Author
|
/unhold The proxy change has been merged |
Contributor
Author
Lloyd-Pottiger
approved these changes
Feb 11, 2025
Contributor
[LGTM Timeline notifier]Timeline:
|
CalvinNeo
reviewed
Feb 11, 2025
Signed-off-by: JaySon-Huang <tshent@qq.com>
1cd71ae to
64399a5
Compare
Contributor
Author
|
/hold |
Signed-off-by: JaySon-Huang <tshent@qq.com>
64399a5 to
179447c
Compare
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CalvinNeo, Lloyd-Pottiger The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Contributor
Author
|
/unhold |
Member
|
In response to a cherrypick label: failed to apply #9849 on top of branch "release-7.5": |
Member
|
In response to a cherrypick label: failed to apply #9849 on top of branch "release-8.1": |
Member
|
In response to a cherrypick label: failed to apply #9849 on top of branch "release-8.5": |
JaySon-Huang
added a commit
to JaySon-Huang/tiflash
that referenced
this pull request
Feb 19, 2025
close pingcap#9750 Add a label with {"exclusive": "no-data"}, so that PD won't select TiFlash compute node stores for placing Region Signed-off-by: JaySon-Huang <tshent@qq.com>
12 tasks
JaySon-Huang
added a commit
to JaySon-Huang/tiflash
that referenced
this pull request
Feb 19, 2025
close pingcap#9750 Add a label with {"exclusive": "no-data"}, so that PD won't select TiFlash compute node stores for placing Region Signed-off-by: JaySon-Huang <tshent@qq.com>
12 tasks
JaySon-Huang
added a commit
to JaySon-Huang/tiflash
that referenced
this pull request
Feb 19, 2025
close pingcap#9750 Add a label with {"exclusive": "no-data"}, so that PD won't select TiFlash compute node stores for placing Region Signed-off-by: JaySon-Huang <tshent@qq.com>
12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #9750
Problem Summary:
When creating a placement policy through tidb, tidb will create a placement-rule with
"engine" notIn "tiflash"pingcap/tidb#22065However, under tiflash disaggregated compute and storage arch, the compute node will register store with label
{"engine": "tiflash_compute"}.The logic in PD of choosing store for rule: pkg/schedule/placement/label_constraint.go @ pd
So the PD would pick tiflash compute node as target store to place the Region peer.
What is changed and how it works?
We avoid Region data being placed to TiFlash compute node in 2 ways:
--engine-role-labelfrom proxy args, use--labelsinstead--labelswon't overwrite theserver.labelsin tiflash_tikv.toml, instead, proxy append the extra labels toserver.labelsCheck List
Tests
Side effects
Documentation
Release note