-
Notifications
You must be signed in to change notification settings - Fork 409
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
disagg: Add exclusive label for tiflash compute node #9849
Conversation
/hold |
09e3a5f
to
9ecc9e5
Compare
2403116
to
3fd2deb
Compare
Depends on pingcap/tidb-engine-ext#420 |
/test pull-integration-test |
/unhold The proxy change has been merged |
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
[LGTM Timeline notifier]Timeline:
|
Signed-off-by: JaySon-Huang <[email protected]>
1cd71ae
to
64399a5
Compare
/hold |
Signed-off-by: JaySon-Huang <[email protected]>
64399a5
to
179447c
Compare
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
[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
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/unhold |
In response to a cherrypick label: failed to apply #9849 on top of branch "release-7.5":
|
In response to a cherrypick label: failed to apply #9849 on top of branch "release-8.1":
|
In response to a cherrypick label: failed to apply #9849 on top of branch "release-8.5":
|
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-label
from proxy args, use--labels
instead--labels
won't overwrite theserver.labels
in tiflash_tikv.toml, instead, proxy append the extra labels toserver.labels
Check List
Tests
Side effects
Documentation
Release note