-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
adaptive provider flow control and consumer balance algorithm #10642
Open
LQLlulu
wants to merge
24
commits into
apache:3.2
Choose a base branch
from
LQLlulu:develop
base: 3.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## 3.1 #10642 +/- ##
============================================
+ Coverage 65.20% 65.24% +0.03%
- Complexity 493 494 +1
============================================
Files 1336 1338 +2
Lines 56932 57018 +86
Branches 8438 8451 +13
============================================
+ Hits 37123 37201 +78
- Misses 15840 15845 +5
- Partials 3969 3972 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
guohao
reviewed
Sep 22, 2022
.../src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/PowerOfTwoChoiceWithLeastActive.java
Outdated
Show resolved
Hide resolved
guohao
reviewed
Sep 22, 2022
.../src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/PowerOfTwoChoiceWithLeastActive.java
Show resolved
Hide resolved
guohao
reviewed
Sep 22, 2022
...cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/AdaptivePowerOfTwoChoice.java
Outdated
Show resolved
Hide resolved
guohao
reviewed
Sep 30, 2022
...cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/AdaptivePowerOfTwoChoice.java
Show resolved
Hide resolved
guohao
reviewed
Sep 30, 2022
.../src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/PowerOfTwoChoiceWithLeastActive.java
Show resolved
Hide resolved
LQLlulu
changed the title
P2C load balance algorithm
adaptive provider flow control and consumer balance algorithm
Nov 25, 2022
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
The P2C with least active load balance algorithm is implemented.
使用方法:
自适应限流部分的使用方法:
要确保服务端存在多个节点,并且消费端开启重试策略的前提下,限流功能才能更好的发挥作用。
设置方法与静态的最大并发值设置类似,只需在provider端将"flowcontrol"设置为"autoConcurrencyLimier"或者"heuristicSmoothingFlowControl"即可。
实验效果
负载均衡部分:
自适应限流部分
Brief changelog
Verifying this change
Checklist