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
Carpenter Lee
f3e705c5f3
Add exceptionsToTrace and exceptionsToIgnore support in Tracer ( #766 )
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-05-22 10:06:03 +08:00
Eric Zhao
8d0bb691b3
Fix the bug for parsing with only non-param gateway rules
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-22 09:47:41 +08:00
Eric Zhao
ae0b8a5c74
Refactor API gateway common module to separate converted rules from other rule managers
...
- Separate converted parameter rules from ParamFlowManager. Now the converted rules will be kept in GatewayRuleManager directly.
- Add a GatewayFlowSlot to do separate flow checking for generated rules.
- Refactor rule converting mechanism: now gateway rules in normal mode (without parameter) will also be converted to a parameter flow rule. The index will be the last (the last position). In GatewayParamParser we put a constant value to the last position.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-22 09:47:41 +08:00
Eric Zhao
77dec5f845
Separate parameter metric storage from ParamFlowSlot and improve ParamFlowRuleUtil
...
- Add a ParameterMetricStorage specific for caching ParameterMetric (moved from ParamSlot)
- Add rule map building helper method in ParamFlowRuleUtil so that we can reuse it in other rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-22 09:47:41 +08:00
Eric Zhao
54da16d304
Refactor FlowRuleChecker to improve code reuse
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-22 09:47:41 +08:00
yikangfeng
4ec0462e31
Add getCpuUsageThreshold() method in SystemRuleManager ( #770 )
2019-05-21 16:00:46 +08:00
threedr3am
83ab401ab4
dashboard: fix wrong bean name of FlowRuleZookeeperProvider sample ( #765 )
2019-05-16 13:34:35 +08:00
Eric Zhao
0508c92665
Fix the bug that parameters are not carried when exiting entries in SentinelReactorSubscriber
2019-05-10 14:47:18 +08:00
Carpenter Lee
18d8b4c8a7
Add CPU usage and system load to metric ( #749 )
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-05-10 14:20:00 +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
6e4560845c
Update SENTINEL_VERSION constant to 1.6.1
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-05-06 13:46:03 +08:00
Carpenter Lee
a2683383d1
[Feature]Add an extension to Sentinel internal statistics ( #730 )
...
Add Sentinel MetricExtension, which provides extension to Sentinel internal statistics.
This extension provides callbacks when a request passes rule checking,
blocked by flow control, successfully end or exception occurred.
Accompanied by these events, response time and current thread number
will be recorded too.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-05-06 10:55:42 +08:00
haofangyuan
55838d9fb0
dashboard: Fix empty rule pushing bug of FlowRuleZookeeperPublisher sample ( #732 )
2019-05-05 15:08:07 +08:00
kexianjun
1d1878c1dd
dashboard: Add ZooKeeper flow rule dynamic publisher sample ( #714 )
2019-04-29 13:48:29 +08:00
Jason Joo
ecf4822ae1
Make SentinelConfig.loadProps() thread-safe using CopyOnWriteArraySet ( #706 )
2019-04-25 20:00:44 +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
1baac7783d
Refactor and improve Sentinel Zuul Adapter
...
- Now the adapter is based-on sentinel-api-gateway-adapter-common and supports both proxyId and customized APIs
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-24 17:55:40 +08:00
Eric Zhao
540428bae0
Support getting and updating gateway rules and API groups via transport command
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-24 09:40:35 +08:00
kexianjun
4819675f84
dashboard: fix typo in SystemController ( #700 )
2019-04-24 09:23:49 +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
268c5502ed
Update transport module to carry appName in heartbeat message
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 21:06:31 +08:00
Eric Zhao
bb4fde58b8
Add appType property field in SentinelConfig
...
- The `appType` can be retrieved from `csp.sentinel.app.type` field. It's useful to identify the service type (e.g. API gateway).
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 21:06:31 +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
0f875d89f3
Add Sentinel Spring Cloud Gateway adapter module and implementation
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 14:32:29 +08:00
Eric Zhao
faceb5f419
Add sentinel-api-gateway-adapter-common module for universal gateway rule and API definition management
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-23 14:32:29 +08:00
Eric Zhao
5f713bd404
Update toString() method of ParamFlowRule
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-22 14:46:38 +08:00
Eric Zhao
c316211faf
Add loadInstanceList support for SpiLoader
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-22 11:13:38 +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
yikangfeng
08611fae0f
Add exceptionsToIgnore configuration support in @SentinelResource annotation ( #683 )
2019-04-21 15:57:12 +08:00
zhaixiaoxiang
cb9335126c
test: Fix unstable test cases in OccupiableBucketLeapArrayTest ( #687 )
2019-04-20 22:28:38 +08:00
Eric Zhao
af126b0c8d
dashboard: improve login page and update related document
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-20 22:11:20 +08:00
cdfive
4acb907050
dashboard: Add a simple login page to support basic auth ( #659 )
...
- Add `AuthController` and `SimpleWebAuthServiceImpl`
- Update `AuthFilter`
- Add a simple login page and frontend interceptor to support auth check and session storage
2019-04-20 21:23:03 +08:00
Eric Zhao
7d344dcb95
Improve AbstractTimeBasedTest in sentinel-core
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-20 21:04:20 +08:00
Eric Zhao
030ec23736
Make CommandCenterProvider and HeartBeatSenderProvider choose the instance with highest precedence
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-17 14:47:09 +08:00
Eric Zhao
79211f055c
Add @SpiOrder annotation and update SPI loader for loading SPI with highest precedence
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-17 14:47:09 +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
Jason Joo
359e65932c
dashboard: refinement and support HTTP POST request for update operations in SentinelApiClient ( #620 )
...
* Restructure: SentinelApiClient to support posting and refine it to make it simple
* Enhancement: SentinelVersion parsing logic
* Bug fix: comparison bug of SentinelVersion
2019-04-12 13:49:54 +08:00
jason
73f166e258
Make ClusterNodeTest.testGetOrCreateOriginNodeMultiThread stable
2019-04-12 10:42:08 +08:00
jason
16082a875c
Make WarmUpRateLimiterControllerTest stable
2019-04-12 10:42:08 +08:00
jason
aaeeea37e5
Feature: Make transport-netty-http/transport-simple-http support posting
2019-04-12 10:42:08 +08:00
Eric Zhao
b02ef82c62
Add constructor for EntryConfig in sentinel-reactor-adapter
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-11 17:11:52 +08:00
Paul Kenneth Kent
4cc25429d3
Add unit tests for com.alibaba.csp.sentinel.util ( #651 )
...
* Add unit test for com.alibaba.csp.sentinel.util.IdUtil
* Add unit tests for com.alibaba.csp.sentinel.util.StringUtil
2019-04-09 09:14:51 +08:00
Eric Zhao
29f22e370b
Fix the NPE bug when passing null args to SphU.entry() and paramIdx is negative ( #642 )
...
- Also rearrangement of some code
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:40:23 +08:00
Eric Zhao
fc550343c7
Support passing parameters via SentinelReactorTransformer
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:36:04 +08:00
Eric Zhao
afc77c2b3e
Fix the bug that entry in SentinelReactorSubscriber did not carry expected entry type
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:36:04 +08:00
luoxiangnan
4b0960c942
dashboard: fix CountDownLatch wait timeout in MetricFetcher when machine is dead ( #645 )
2019-04-03 11:46:34 +08:00