M4Y
197b7db440
Support customized origin parser in Apache Dubbo 2.7.x adapter and unify config ( #1617 )
* Support customized origin parser in Apache Dubbo 2.7.x adapter
* Unify Dubbo callback registry (for fallback and origin parser) into DubboAdapterGlobalConfig
* Polish default fallback implementation (wrap exception with RpcResult rather than directly throw it out)
4 år sedan
Eric Zhao
a88288715a
Refactor extended MetricExtension interface (matching events in Sentinel)
- Unify the extended interface as a few event handlers: onPass, onBlocked, onComplete and onError
- Polish related code
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
58ff01e39b
Polish Dubbo 2.6.x adapter and unify callback registry into DubboAdapterGlobalConfig ( #1572 )
* Unify Dubbo callback registry (for fallback and origin parser) into DubboAdapterGlobalConfig
* Polish default fallback implementation (wrap exception with RpcResult rather than directly throw it out)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
5334f51d21
dashboard: Refactor degrade service/controller and adapt to new features
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Bill Yip
8643dac943
Add extended interface for metric extension hook to support distinguishing traffic type ( #1665 )
- Add EntryType args to all hook methods
4 år sedan
Eric Zhao
dae4621e6e
Refactor exit handler mechanism of Entry
- Rename: whenComplete -> whenTerminate
- Execute the exit handler directly after the onExit hook of all slots
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
55e038cc33
Polish CircuitBreaker interface and update comments
- Only carry context in tryPass/onComplete method (this might be generic in upcoming versions)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Jason Joo
ee2772b513
Fix the bug of circuit breaker half-open state transformation when request is blocked by upcoming rules ( #1645 )
* Refactor the workflow to fix the bug that circuit breaker may remain half-open state forever when the request is blocked by upcoming rules: revert the state change in exit handler (as a temporary workaround)
* Add exit handler in Entry as a per-invocation hook.
4 år sedan
M4Y
10c92e69a2
Optimize the order of slots in ProcessorSlot SPI config ( #1649 )
4 år sedan
cj
dbbed35cc4
Remove unused code in TokenServerHandler#channelActive ( #1667 )
Signed-off-by: cj <power4j@outlook.com>
4 år sedan
Peine
c5da3faad9
Polish boolean checking in test cases and dashboard ( #1664 )
4 år sedan
ZhiQiang Gu
b9b1e8a481
Polish cluster flow control demo: add port in Nacos address ( #1655 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
Eric Zhao
a18ef7cbfa
Remove deprecated passCheck() in Rule and polish interface
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
a5fe23ad63
test: Update test cases with new degrade mechanism in sentinel-demo-quarkus
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
19db20f00d
Update demo for circuit breaking (DegradeRule)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
07b811196b
Update test cases for circuit breaking
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
Eric Zhao
c0c27c86b7
Refactor degrade hierarchy with new circuit breaker mechanism and improve strategy
* Add `CircuitBreaker` abstraction (with half-open state) and add circuit breaker state change event observer support.
* Improve circuit breaking strategy (avg RT → slow request ratio) and make statistics of each rule dependent (to support arbitrary statistic interval).
* Add simple "trial" mechanism (aka. half-open).
* Refactor mechanism of metric recording and state change handling for circuit breakers: record RT and error when requests have completed (i.e. `onExit`, based on #1420 ).
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
ZhiQiang Gu
17c3ff7a44
test: Add unit test for sentinel-cluster-server and polish code ( #1529 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
Eric Zhao
86f8bb7b38
Refactor config mechanism for OkHttp adapter and polish related code
- One config per interceptor instead of the global config
- Polish document and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
ZhiQiang Gu
c7949f5f4e
Fix incorrect protocol description in FlowRequestData writer/decoder ( #1607 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
HupJ
ccd029ed0a
doc: Fix mistakes in README.md of sentinel-zuul-adapter ( #1593 )
4 år sedan
于玉桔
38911c5ec1
Adapter: Support Apache HttpClient ( #1455 )
Introduce support through a customized client builder `SentinelApacheHttpClientBuilder`.
4 år sedan
HupJ
4f31b2c61b
Add explicit null checking for charset in SimpleHttpClient#encodeRequestParams ( #1589 )
4 år sedan
ZhiQiang Gu
5e1a443663
demo: Update slot chain SPI demo ( #1581 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
Bo
57f9bc7a6a
Upgrade nacos-client version to 1.3.0 in sentinel-datasource-nacos ( #1576 )
4 år sedan
pleasecheckhere2016
7e354016c7
Add Eureka data-source extension ( #1502 )
4 år sedan
iron_city
d8714caceb
Support customized origin parser in legacy Dubbo 2.6.x adapter ( #1555 )
4 år sedan
Eric Zhao
07df2818fe
Polish document and rearrange package for Quarkus and JAX-RS adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
seasidesky
d59d2d3071
Add annotation CDI demo and Quarkus adapter demo ( #1543 )
4 år sedan
xiby
9b46e62665
Add file.encoding JVM args in maven-surefire-plugin to avoid charset problem ( #1550 )
4 år sedan
yangy
ff0e53f7c6
Upgrade fastjson to 1.2.71 ( #1545 )
4 år sedan
Eric Zhao
ba3469b0ac
Polish document and code of Sentinel annotation CDI extension
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
seasidesky
fda21de748
Add Sentinel annotation and JAX-RS plugins for Quarkus ( #1542 )
* Add sentinel-quarkus-adapter module, which provides sentinel-annotation-quarkus-adapter and sentinel-jax-rs-quarkus-adapter to adapt sentinel-annotation-cdi-interceptor and sentinel-jax-rs-adapter for Quarkus. It also provides sentinel-native-image-quarkus-adapter to support running Sentinel with Quarkus in native image mode.
4 år sedan
seasidesky
7b53b61373
Add annotation extension for Java EE CDI ( #1541 )
4 år sedan
Eric Zhao
728e2b1a2e
Polish sentinel-opensource-eco-landscape-en.png
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
wavesZh
f1b63315c1
Improve consumer filter of Dubbo 2.6.x and 2.7.x adapter ( #1532 )
* entry and exit with params in consumer filter
4 år sedan
ZhiQiang Gu
a1e3715db1
Add unit test for cluster/FlowResponseDataDecoder ( #1514 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
yangy
1a97226851
Polish RocketMQ PullConsumerDemo to make code clear ( #1528 )
4 år sedan
Lin.Liang
5d439adf60
Fix sentinel-apache-dubbo-adapter full GC bug ( #1431 )
4 år sedan
ZhiQiang Gu
bd29e046e1
Add unit test for logging/TokenBucket ( #1504 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
于玉桔
6b86721b36
Support setting class-level defaultFallback for annotation extension ( #1493 )
4 år sedan
zechao zheng
0d7da77d03
Add support for extracting param from complex object ( #1491 )
* This could enable specified parameter flow control for customized objects.
4 år sedan
ZhiQiang Gu
2e64d33085
test: Add test cases for Tuple2 ( #1501 )
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
4 år sedan
pleasecheckhere2016
5523fd0d42
Add exceptionPredicate in Tracer for customized exception filtering logic ( #1496 )
4 år sedan
cdfive
46076b34aa
dashboard: Fix historical version compatibility problem for auth check via localStorage ( #1473 )
4 år sedan
于玉桔
2b68a6c062
Add OkHttp integration ( #1456 )
4 år sedan
Eric Zhao
99d4355318
Polish code comments of the fundamental Sph/SphO/SphU class
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 år sedan
wavesZh
096a9ebf7d
Improve deprecated ParameterMetric purge mechanism ( #1372 )
* Clear useless data in ParameterMetric for all removed rules
4 år sedan
于玉桔
d84d681dd8
dashboard: Fix the bug that cookie may have conflict with web applications under the same domain ( #1443 )
4 år sedan
zhenxianyimeng
ba391097ca
dashboard: Remove duplicate code in MetricEntity ( #1441 )
4 år sedan