-
Notifications
You must be signed in to change notification settings - Fork 118
Support select replica with rich meta data #171
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
Conversation
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
353571f to
bfca20b
Compare
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
|
Please be aware, In addition to implement feature requested in issue #193, there is an extra change to support custom HostMapping implementation to make it possible to map cluster local names in K8S cluster into global names that are accessible out side of K8S cluster. |
There is an example of HostMapping implementation here: https://github.com/tidb-incubator/TiBigData/blob/662469a66ab951fcdf557ab461fceaa90a27b595/tidb/src/main/java/io/tidb/bigdata/tidb/DnsSearchHostMapping.java |
|
Changes to ReplicaSelector interface made this PR binary incompatible with existing code. Even though I doubt if this feature was actually used anywhere, we can still support the old interface by some extra amount of work. Would like to hear feedbacks. |
marsishandsome
left a comment
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
|
/run-all-tests |
|
@sunxiaoguang test failed. |
Sure, let me fix it. |
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
|
/run-all-tests |
2 similar comments
|
/run-all-tests |
|
/run-all-tests |
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
|
/run-all-tests |
marsishandsome
left a comment
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
birdstorm
left a comment
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
|
/merge |
|
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
|
cherry pick to release-3.1 in PR #225 |
* cherry pick #171 to release-3.1 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * fix test Signed-off-by: birdstorm <samuelwyf@hotmail.com> Co-authored-by: Xiaoguang Sun <sunxiaoguang@users.noreply.github.com> Co-authored-by: birdstorm <samuelwyf@hotmail.com>
Signed-off-by: Xiaoguang Sun sunxiaoguang@zhihu.com
What problem does this PR solve?
Pass in more meta data so ReplicaSelector can make better decision at runtime
What is changed and how it works?
Pass in more meta data so ReplicaSelector can make better decision at runtime
Check List
Tests
Code changes
Side effects
Related changes