Skip to content
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

Merged
merged 37 commits into from
Aug 5, 2020

Conversation

ph3636
Copy link
Contributor

@ph3636 ph3636 commented Dec 23, 2019

Ⅰ. 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

@codecov-io
Copy link

codecov-io commented Dec 24, 2019

Codecov Report

Merging #2080 into develop will increase coverage by 0.07%.
The diff coverage is 80.00%.

Impacted file tree graph

@@              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     
Impacted Files Coverage Δ Complexity Δ
...figure/properties/registry/RegistryProperties.java 38.46% <25.00%> (-21.54%) 2.00 <0.00> (ø)
...eata/discovery/loadbalance/LoadBalanceFactory.java 62.50% <71.42%> (+12.50%) 1.00 <1.00> (ø)
...scovery/loadbalance/ConsistentHashLoadBalance.java 94.28% <94.28%> (ø) 4.00 <4.00> (?)

@zjinlei zjinlei added this to the 1.1.0 milestone Jan 2, 2020
@zjinlei zjinlei closed this Jan 25, 2020
@zjinlei zjinlei reopened this Jan 25, 2020
@slievrly slievrly removed this from the 1.1.0 milestone Feb 5, 2020
@zjinlei zjinlei added this to the 1.2.0 milestone Feb 5, 2020
@zjinlei zjinlei modified the milestones: 1.2.0, 1.3.0 Apr 10, 2020
@ph3636 ph3636 changed the title feature: support ConsistentHashLoadBalance [WIP]feature: support ConsistentHashLoadBalance May 25, 2020
@l81893521 l81893521 removed this from the 1.3.0 milestone Jun 29, 2020
@l81893521 l81893521 added this to the 1.4.0 milestone Jul 16, 2020
ph3636 and others added 4 commits July 20, 2020 21:07
# 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
Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@slievrly
Copy link
Member

@ph3636 There are cyclic dependencies.

@ph3636
Copy link
Contributor Author

ph3636 commented Jul 30, 2020

@ph3636 There are cyclic dependencies.

done

Copy link
Contributor

@l81893521 l81893521 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ph3636 added 3 commits August 5, 2020 15:49
# Conflicts:
#	seata-spring-boot-starter/src/main/java/io/seata/spring/boot/autoconfigure/properties/client/RmProperties.java
@l81893521 l81893521 merged commit 944e0e5 into apache:develop Aug 5, 2020
@ph3636 ph3636 deleted the ConsistentHashLoadBalance branch August 6, 2020 07:41
l81893521 pushed a commit to l81893521/seata that referenced this pull request Oct 22, 2020
@ls9527
Copy link
Contributor

ls9527 commented Nov 1, 2020

根据TC列表做一层缓存吧, 每次都新建虚拟节点是不是性能会受到影响? 比如配置3台TC, 配置160个虚拟节点, 每个请求都要多480个循环, 听起来就没必要嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/config config module module/core core module module/discovery discovery module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants