Support select replica with rich meta data#171
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. |
|
/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 |
|
/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