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
Eric Zhao
2e0fe23384
Bump version to 1.4.2 (release)
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:15:33 +08:00
yanlinly
1368154000
Update Nacos SDK version to 0.8 and update Nacos namespace demo ( #474 )
2019-01-31 09:21:39 +08:00
giegie
6d61fd0538
Add logback dependency in sentinel-demo-nacos-datasource to avoid log ClassNotFoundException thrown by Nacos client ( #438 )
2019-01-21 16:22:17 +08:00
huaifeng
70a3144cee
Upgrade Dubbo version in sentinel-demo-dubbo ( #436 )
2019-01-21 12:45:49 +08:00
wangjunwei87
d8a522590c
doc: fix typo in README of Sentinel Dubbo Demo ( #425 )
2019-01-16 18:39:52 +08:00
Eric Zhao
0969113710
Improve cluster embedded demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-16 16:24:01 +08:00
Eric Zhao
a5e95b7b24
Update cluster demo README and remove unused demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-14 14:16:58 +08:00
Eric Zhao
d4d85dbc7c
Bump version to 1.4.2-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 19:08:07 +08:00
Eric Zhao
225d81ed93
Bump version to 1.4.1
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:59:50 +08:00
Eric Zhao
8d413e1645
Polish Sentinel dashboard backend for cluster flow control enhancement
...
- Add cluster token server management controller and service for app
- Other enhancements and fixes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:56:57 +08:00
Eric Zhao
c12f016b38
Polish cluster flow control demo to be more instructive
...
- Add a demo Spring Boot application integrated with cluster flow control to show the recommended way
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:17:35 +08:00
Eric Zhao
9916dad403
Bump version to 1.4.1-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-17 10:23:19 +08:00
Eric Zhao
c7b5653249
Bump version to 1.4.0
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 14:59:27 +08:00
Eric Zhao
f01fe2b437
Add demo module for Sentinel cluster flow control
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:54:30 +08:00
Eric Zhao
2237727a11
Add prioritized entry support in ProcessorSlot and SphU ( #255 )
...
- Refactor the slot interface to support prioritized entry
- Add `entryWithPriority` in SphU
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-21 16:22:41 +08:00
Eric Zhao
7fe3656e64
Update dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-19 14:37:54 +08:00
Carpenter Lee
08f2a71f4e
Add "warmup with rate limiting" implementation for traffic shaping ( #220 )
...
- Add a new kind of control behavior `warm up + rate limiter`, behaving as both warm up and pace control
2018-11-01 17:10:13 +08:00
Eric Zhao
e322df2d32
Update documentation and issue template
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 19:07:18 +08:00
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 16:06:32 +08:00
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 15:01:51 +08:00
Eric Zhao
531578ce54
Bump version to 1.3.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-24 15:52:11 +08:00
Eric Zhao
5ba1ccdea8
Typo fix for FlowThreadDemo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-18 17:54:59 +08:00
Carpenter Lee
aaf88b8a0a
Rename ParamFlowRule.blockGrade to grade
2018-10-16 20:34:40 +08:00
李豪
9ae079c152
Support degrade by exception count ( #174 )
...
* Add a new DegradeRule type, degrade by exception count in the last 60 seconds
* Add demo about degrading by exception count
2018-10-11 16:39:38 +08:00
Eric Zhao
a25f25bea6
Add demo for SlotChainBuilder SPI
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-09 17:33:37 +08:00
Eric Zhao
94dc7966ae
Bump version to 0.2.1-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-28 17:18:41 +08:00
Eric Zhao
1063974ceb
Bump version to 0.2.0
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-27 17:59:23 +08:00
Eric Zhao
88a02623ac
Add flow control by frequent (hot spot) parameters ( #156 )
...
- Add callback registry for statistic slot for extensions.
- Add a new module `sentinel-parameter-flow-control` under `sentinel-extension`.
- Add a `CacheMap` interface to provide abstraction for cache. We use ConcurrentLinkedHashMap as the default implementation (LRU strategy)..
- Add a `ParameterMetric` class as frequent parameter metrics for a specific resource. The metric map is located in `ParamFlowSlot` rather than `ClusterNode`.
- Implement `ParameterLeapArray` as statistic data structure for frequent parameters in a period of time window.
- Add `ParamFlowSlot` as the checker slot; Add `ParamFlowChecker` to do rule checking; Add `ParamFlowRuleManager` to do rule managing.
- The statistic metrics for frequent parameters is enabled only if the related resource has configured parameter flow rule; Parameter metrics for removed rules will be cleared automatically.
- Leverage extensible `SlotChainBuilder` to provide a `HotParamSlotChainBuilder`.
- Add command handlers for hot param rules.
- Add test cases and demo.
2018-09-27 14:15:47 +08:00
Eric Zhao
7c179bb592
Update integration test and demo for async entry
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-25 11:43:23 +08:00
Eric Zhao
015efe2f9b
Separate checking logic from AuthorityRule and add test cases
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-17 11:41:51 +08:00
Eric Zhao
b1f33675c5
Improvements for Redis data source and demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-14 15:02:55 +08:00
Eric Zhao
2a3e33590f
Update test cases and demo for async support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-12 18:53:24 +08:00
Eric Zhao
007cd9d291
Some refactor of data source
...
- Add `close` method in WritableDataSource (to extend AutoCloseable in JDK 1.7 later)
- Separate the writable file data source from original class
- Add a sample to show how to register data sources via Sentinel init mechanism
- Separate a writable data source registry from original handler to make it clear
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao
f3eb285445
Update demo of various data source to adapt to new changes
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao
94aea568f6
Miscellaneous update
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-15 15:33:29 +08:00
Eric Zhao
4226868dcf
Fix typo in rule constants and add authority rule demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-13 11:22:03 +08:00
Eric Zhao
b42a930a83
Update documents
...
- Add Maven Central badge
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-09 15:42:11 +08:00
Eric Zhao
b212e5f26e
Bump version to 0.2.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 20:45:25 +08:00
Eric Zhao
6bef9a8ee1
Bump version to 0.1.1
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 19:57:37 +08:00
Jason Song
b51c3ad13e
Add Apollo data source extension ( #46 )
2018-08-08 18:53:13 +08:00
Eric Zhao
b1cf30fc24
Add support for shared block handler
...
- Update javadoc and document
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
d0970d5ef7
Add demo for Sentinel Annotation AspectJ with Spring AOP
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
b37c237a61
Add default fallback support for Dubbo
...
- Update test cases and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:09:13 +08:00
Eric Zhao
0438d530d4
Update documents
...
- Update document for Dubbo demo
- Update document for extensions
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-07 19:43:32 +08:00
Eric Zhao
fd936a4567
Update ZooKeeper data source integration
...
- Code refinement
- Add test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-06 10:02:02 +08:00
guonanjun
3395412c57
Add ZooKeeper data source for Sentinel ( #33 )
2018-08-05 13:03:18 +08:00
Eric Zhao
cd9ae9a611
Add sample for Sentinel Nacos DataSource
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-07-30 17:39:47 +08:00
Eric Zhao
934816b9ab
Bump version to 0.1.1-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-07-27 16:47:14 +08:00
Eric Zhao
c92fea5d46
Welcome to the world, Sentinel
2018-07-27 16:34:30 +08:00