-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature: support ConsistentHashLoadBalance #2080
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #2080 +/- ##
=============================================
+ Coverage 51.06% 51.14% +0.07%
- Complexity 2764 2768 +4
=============================================
Files 550 551 +1
Lines 17525 17574 +49
Branches 2064 2070 +6
=============================================
+ Hits 8949 8988 +39
- Misses 7735 7743 +8
- Partials 841 843 +2
|
config/seata-config-core/src/main/java/io/seata/config/ConfigurationKeys.java
Outdated
Show resolved
Hide resolved
# Conflicts: # core/src/main/java/io/seata/core/rpc/RemotingClient.java # core/src/main/java/io/seata/core/rpc/netty/AbstractNettyRemotingClient.java # rm-datasource/src/main/java/io/seata/rm/datasource/DataSourceManager.java
...ry/seata-discovery-core/src/main/java/io/seata/discovery/loadbalance/LoadBalanceFactory.java
Outdated
Show resolved
Hide resolved
...ry/seata-discovery-core/src/main/java/io/seata/discovery/loadbalance/LoadBalanceFactory.java
Outdated
Show resolved
Hide resolved
...ry/seata-discovery-core/src/main/java/io/seata/discovery/loadbalance/LoadBalanceFactory.java
Outdated
Show resolved
Hide resolved
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
@ph3636 There are cyclic dependencies. |
done |
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
# Conflicts: # seata-spring-boot-starter/src/main/java/io/seata/spring/boot/autoconfigure/properties/client/RmProperties.java
根据TC列表做一层缓存吧, 每次都新建虚拟节点是不是性能会受到影响? 比如配置3台TC, 配置160个虚拟节点, 每个请求都要多480个循环, 听起来就没必要嘛 |
Ⅰ. Describe what this PR did
support ConsistentHashLoadBalance
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews