Commit Graph

99 Commits

Author SHA1 Message Date
Eric Zhao a0196b6b00 Bump version to 1.8.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-13 20:19:22 +08:00
Eric Zhao 6a7ec708bc Bump version to 1.7.2
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-08 09:42:02 +08:00
Jason Joo b715ceacf0
Fix CI failure in JDK 11 environment (#1360)
* Supplement missing javax.annotation-api to sentinel-cluster-server-envoy-rls and sentinel-demo-zuul2-gateway
* Upgrade mockito-core to 2.28.2 (up to date)
2020-03-23 22:26:56 +08:00
Eric Zhao e4769293dc
Move CommandCenterLog to sentinel-transport-common and polish related code (#1341)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 22:30:29 +08:00
Eric Zhao 624d19d4ce
Polish logging SPI related code and add general JUL adapter for Logger SPI (#1338)
* Move the legacy JUL methods from LogBase to BaseJulLogger.
* Add a JavaLoggingAdapter as the general JUL adapter for the Logger SPI, which makes it convenient to use (as the default logger).
* Add LoggerSpiProvider to resolve Logger SPI.
* Polish the logback demo.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 10:00:46 +08:00
Eric Zhao 0536fb6846 Polish code and demo of Sentinel Zuul 2.x adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 19:06:23 +08:00
tao.zhang 5b9865db1c Add gateway adapter for Zuul 2.x (#1138)
- also add demo for Zuul 2.x adapter
2020-03-13 22:37:33 +08:00
cdfive 2c2f60cf58
Add "web-context-unify" config in Spring WebMVC adapter to support "chain" relation flow strategy (#1328) 2020-03-10 23:02:07 +08:00
Eric Zhao d07d17b4ca Polish code and document of sentinel-sofa-rpc-adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-03 17:08:08 +08:00
cdfive 18acb1d154
Add Sentinel SOFARPC adapter module (#1307) 2020-03-02 18:13:54 +08:00
xue8 5f203aa79f
Flexible loggers' support through SPI mechanism with name `com.alibaba.csp.sentinel.log.Logger` (#1265)
* There are two types of logger for command center and common modules specified by  annotation of `LogTarget`
* Add implementing examples in `sentinel-demo/sentinel-demo-log-logback`
* All implementations should support placeholder '{}'
2020-02-21 11:24:00 +08:00
xue8 70b66046a9 demo: Avoid hard-coded file separator in sentinel-demo-dynamic-file-rule module (#1247) 2020-01-13 11:08:03 +08:00
Eric Zhao 87142ce512 Bump version to 1.7.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:19:07 +08:00
Eric Zhao 9c909e3631 Bump version to 1.7.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-24 20:05:23 +08:00
Mr.Z 47100e64ba Improve async invocation support in sentinel-apache-dubbo-adapter (#1124)
* Improve async support for Dubbo 2.7.2 and above (not compatible with 2.7.0 and 2.7.1 due to the bad compatibility design of Dubbo Filter)
2019-12-23 17:45:48 +08:00
Eric Zhao 20ad3c8f79 Improve code and demo for sentinel-spring-webmvc-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-27 17:46:59 +08:00
kaizi2009 b14534fb35 Add Sentinel Spring Web MVC adapter module (#1104)
- Add sentinel-spring-webmvc-adapter module and demo
2019-11-27 14:47:04 +08:00
Eric Zhao 9705f54611 Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 11:08:14 +08:00
Eric Zhao 8cdf1de854 Bump version to 1.7.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-11 21:12:58 +08:00
dependabot[bot] 3b5823987c Bump netty-all version in sentinel-demo-dubbo to fix vulnerability (#1130)
Bumps [netty-all](https://github.com/netty/netty) from 4.1.31.Final to 4.1.42.Final.

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-31 09:48:17 +08:00
Lin.Liang aeae6cfe37 Add Etcd data-source extension (#1018) 2019-10-10 11:19:27 +08:00
Eric Zhao 58a83b42aa Update ZooKeeper client in data-source module to 3.4.14 to fix vulnerability
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-06-19 10:09:20 +08:00
Eric Zhao 56e463e1fe
Add support for request item pattern matching in API gateway flow control (#842)
- Update the `GatewayParamParser` to support matching the request item.
- Update the internal logic of converting gateway rules to parameter flow rules. The unified mismatched parameters (`SentinelGatewayConstants.GATEWAY_NOT_MATCH_PARAM`) will be configured as an exception item with a large threshold (indicating always pass).
- Add a `GatewayRegexCache` to cache the compiled regex for performance.
- Constant rename: separate URL matching strategy from parameter matching strategy

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-06-18 14:08:54 +08:00
Lin.Liang 2eecd3ac6a Make the value of RT_MAX_EXCEED_N in DegradeRule configurable (#789)
- Add two attributes in DegradeRule: rtSlowRequestAmount and minRequestAmount
2019-06-14 17:42:03 +08:00
Eric Zhao f8ebbbccf4 Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-25 15:07:19 +08:00
Eric Zhao 3d2c33ef1d Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-23 09:49:15 +08:00
尹吉欢 274ecb51c3 Fix the bug that Chinese characters are malformed in response body of ZuulBlockFallbackProvider (#737) 2019-05-09 10:07:27 +08:00
Eric Zhao 346e9b274e Bump version to 1.6.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-25 09:38:59 +08:00
Eric Zhao b1345f751f Bump version to 1.6.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-24 20:42:32 +08:00
Eric Zhao 7546bcc83b Add basic demo for Sentinel Zuul adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-24 17:55:40 +08:00
Eric Zhao 82578e1fdf
Refactor and improve fallback support for @SentinelResource annotation (#693)
- Refactor the semantics and logic for blockHandler and fallback
- Add `fallbackClass` support for fallback in global classes
- Add `defaultFallback` support
- Update test cases and demo

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 23:17:03 +08:00
Eric Zhao 845b258b61 Add demo for Sentinel Spring Cloud Gateway adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 14:32:29 +08:00
Eric Zhao e9719d32ec
Refactor flow algorithm for parameter flow control and support more traffic shaping mode (#677)
* support burst count, statistic interval per rule and throttling mode.
* Add fields in ParamFlowRule to support burst count, throttle, statistic interval per rule.
* Deprecate HotParamLeapArray and use token bucket algorithm directly.
2019-04-22 11:06:26 +08:00
Eric Zhao df27e3ef9d Code refactor and refinement for FileInJarReadableDataSource
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-15 17:02:24 +08:00
nick.ding 882a06007d Add FileInJarReadableDataSource to support reading config file in jar (#646) 2019-04-15 12:06:34 +08:00
Eric Zhao 015c87cfe1 Update demo for parameter flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-28 19:37:36 +08:00
Eric Zhao 0c3bf96678 Bump version to 1.6.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 18:00:06 +08:00
Eric Zhao 48286e0ff8 Bump version to 1.5.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 15:23:11 +08:00
Eric Zhao f59b134b3c Add demo module for integration with Apache Dubbo 2.7.x and above version
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 14:20:13 +08:00
Eric Zhao 7f29773a34
Update Dubbo version to 2.6.x in sentinel-dubbo-adapter and demo (#617)
because Dubbo 2.5.x will be deprecated soon

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 10:54:27 +08:00
Bo Zhang a3369378ad Apply Alibaba p3c pmd plugin/rules and fix/ignore all violations of priority 1 (#574) 2019-03-15 09:24:39 +08:00
Eric Zhao 0d4c47b23e Bump version to 1.5.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 16:50:53 +08:00
Eric Zhao 053f7172a3 Bump version to 1.5.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 15:33:57 +08:00
Eric Zhao 0b8f1c5838 Add basic demo for Sentinel Spring WebFlux adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-11 18:58:42 +08:00
Carpenter Lee 5279895581 Add highestCpuUsage in system rule.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-06 20:21:42 +08:00
cdfive 33fc154d64 Fix Dubbo-related dependencies in sentinel-dubbo-demo (#534)
* Add spring-context-support 1.0.2 and netty-all 4.1.31.Final dependency, and remove spring-context 5.0.7.RELEASE dependency
* Add comment for dependency
2019-03-06 19:59:34 +08:00
Eric Zhao ed5ecd8580 Update command handler demo and code refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 13:56:55 +08:00
逅弈 59d923ebc1 Add an ApiCommandHandler to list all available commands and description (#491)
* Add a ApiCommandHandler which fetch all registered CommandHandlers so that user can get all available CommandHandlers by request /api
* Add a customized CommandHandler demo
2019-03-01 13:39:50 +08:00
Eric Zhao 59c721691b Improve demo for Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 09:47:12 +08:00
Eric Zhao 5b260a9f75 Bump version to 1.5.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-21 19:41:50 +08:00