-
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
Support for Decouping of Compute and Storage of TiFlash #4836
Comments
IMO, we can use Placement Rules to keep data from being relocated to a ReadNode. For example, we can have a rule like this: {
"group_id": "tiflash",
"id": "learner-replica-table-test",
"start_key": "7480000000000000ff2d5f720000000000fa",
"end_key": "7480000000000000ff2e00000000000000f8",
"role": "learner",
"count": 2,
"label_constraints": [
{"key": "engine", "op": "in", "values": ["tiflash"]}
],
"location_labels": ["host"]
} Due to the As for the region cache dispatch, client-go supports using the store label to distinguish different request targets already. You can just re-use these parts of code. |
Thanks! Really helpful. |
Set label for tiflash: pingcap/tiflash#4779 |
Hi @JmPotato , I know that the placement rules can make PD add learner peers within a key range to TiFlash node with label <engine, tiflash> and don't add those peers to <engine, mpp>. |
Feature Request
Describe your feature request related problem
Describe the feature you'd like
The feature requests are from the Decoupling of Compute and Storage for TiFlash.
Describe alternatives you've considered
Teachability, Documentation, Adoption, Migration Strategy
The text was updated successfully, but these errors were encountered: