-
Notifications
You must be signed in to change notification settings - Fork 172
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
support dubbo3.x rateLimiting/circuitBreaker #1747
base: develop
Are you sure you want to change the base?
Conversation
ce53f9c
to
587ca55
Compare
Codecov ReportAttention: Patch coverage is
Flags with carried forward coverage won't be shown. Click here to find out more.
|
e55b08f
to
81f34b1
Compare
mv -f sermant-integration-tests/dubbo-test/dubbo-2-7-integration-provider/src/main/java/io/sermant/integration/ProviderApplication.java.banck sermant-integration-tests/dubbo-test/dubbo-2-7-integration-provider/src/main/java/io/sermant/integration/ProviderApplication.java | ||
mv -f sermant-integration-tests/dubbo-test/dubbo-2-7-integration-provider/src/main/java/io/sermant/integration/Dubbo3ProviderApplication.java sermant-integration-tests/dubbo-test/dubbo-2-7-integration-provider/src/main/java/io/sermant/integration/Dubbo3ProviderApplication.java.banck |
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.
what does Dubbo3ProviderApplication.java.banck mean?
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.
To load the rule file only in the dubbo3 flow control scenario
...tegration-provider/src/main/java/io/sermant/integration/Dubbo3ProviderApplication.java.banck
Outdated
Show resolved
Hide resolved
...provider/src/main/java/io/sermant/integration/configuration/FlowControlExceptionHandler.java
Outdated
Show resolved
Hide resolved
|
||
/** | ||
* 流控全局异常处理 | ||
* | ||
* @author chengyouling |
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.
This file exists in consumer. What is the usage here?
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.
To test the limiting and circuit breaker capabilities of the server in the dubbo scenario
servicecomb: | ||
matchGroup: | ||
demo-lb: | | ||
matches: | ||
- serviceName: dubbo-integration-provider | ||
demo-fault-null: | | ||
matches: | ||
- apiPath: | ||
exact: "io.sermant.integration.service.FlowControlService.faultNull" |
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.
This file exists in consumer. What is the usage here?
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.
To test the limiting and circuit breaker capabilities of the server in the dubbo scenario
@EnabledIfEnvironmentVariable(named = "TEST_TYPE", matches = "dubbo3-flow") | ||
public class Dubbo3FlowControlTest { | ||
private static final String BASE_URL = "http://127.0.0.1:28020/consumer/flow/"; | ||
private static final int RATE_LIMITING_REQUEST_COUNT = 10; | ||
private static final int BREAKER_REQUEST_COUNT = 10; | ||
private static final String BREAKER_MSG = "is OPEN and does not permit further calls"; | ||
private static final String RATE_LIMITING_MSG = "Rate Limited"; | ||
|
||
/** | ||
* 限流测试 | ||
*/ | ||
@Test |
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.
why copy this class and delete some test case?
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.
Currently, adapted server governance capability first. The client retry and load balancing capabilities are not adapted
...wcontrol-common/src/main/java/io/sermant/flowcontrol/common/util/DubboAttachmentsHelper.java
Outdated
Show resolved
Hide resolved
9cd4f22
to
52bf9aa
Compare
2bc63aa
to
14d639d
Compare
Signed-off-by: chengyouling <[email protected]>
c25cfb9
to
cc83193
Compare
What type of PR is this?
Feature
What this PR does / why we need it?
Adapt to the increasing use of dubbo3.x services in the market.
Which issue(s) this PR fixes?
Fixes #1746
Does this PR introduce a user-facing change?
support dubbo3.x rateLimiting/circuitBreaker
Checklist