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
1741da0bab
Automatically de-duplicate rules when loading rules ( #571 )
...
* De-duplicate rules automatically when loading rules
* Update rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 14:05:13 +08:00
Eric Zhao
044cdbb1bf
Add occupy mechanism for future buckets of sliding window to support "prioritized requests final pass" ( #568 )
...
* Rename: MetricsLeapArray -> BucketLeapArray
* Add implementation for `FutureBucketLeapArray`, a kind of `BucketLeapArray` that only reserves for future buckets, which is used for calculating occupied future tokens.
* Add OccupiableBucketLeapArray that combines common BucketLeapArray with FutureBucketLeapArray. The rollingNumberInSecond in StatisticNode now uses OccupiableBucketLeapArray by default.
* Add OccupySupport interface. Node now implements OccupySupport interface.
* Add occupy-related methods in Metric and ArrayMetric.
* Handle prioritized requests in default traffic shaping controller.
* Update default occupyTimeout to 500ms
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 10:04:56 +08:00
Neptune
7367da6936
Upgrade apollo-client to 1.3.0 and add support for removing listener in sentinel-datasource-apollo ( #562 )
...
- Add to unsubscribe config change event
2019-03-11 11:39:47 +08:00
Carpenter Lee
b8e295a138
Convert negative paramIdx of ParamFlowRule in ParamFlowSlot
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-07 10:29:51 +08:00
Carpenter Lee
80797ae85e
Allow negative paramIndex as reversed-order in ParamFlowRule ( #549 )
...
* Allow negative paramIndex in ParamFlowRule
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-06 19:06:58 +08:00
Eric Zhao
1ffce6b579
Fix test dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-06 17:20:26 +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
qinggeng
ec0883d22e
Add AuthInfo parameter in the constructor of ZooKeeperDataSource to support ACL ( #508 )
2019-02-26 17:29:16 +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
Eric Zhao
020a63fdb5
Bug fix: NPE when adding event count in ParamMapBucket ( #494 )
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 13:57:05 +08:00
Eric Zhao
412e1ece47
Carry the triggered rule in subclasses of BlockException ( #469 )
...
* Extract getRule in BlockException and refine override methods in subclasses
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:24:05 +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
Eric Zhao
bac35ac100
Add back thread count metric type support for parameter flow control
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-30 09:37:13 +08:00
Andres Almiray
e893dd8c64
Make build faster by reducing fixed waiting time in tests ( #449 )
...
- Apply awaitility to core tests
- Cache maven local repo in Travis
2019-01-29 09:57:38 +08:00
Eric Zhao
3109ac4bef
Remove slf4j dependency in sentinel-annotation-aspectj
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-25 16:59:54 +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
832d6e425d
Update document to meet Markdown lint
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-29 15:23:27 +08:00
format
4592c45741
Upgrade nacos-client version and construct NacosDataSource by Properties ( #348 )
...
* Polish #272 : upgrade nacos-client version and create a new constructor for NacosDataSource to support namespace, endpoint, ak, sk and so on
* check properties in NacosDataSource
2018-12-28 00:27:25 +08:00
Eric Zhao
f046194d6b
Add sampleCount and windowInterval item to cluster config of flow rule and param rule
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-25 11:44:40 +08:00
Eric Zhao
a2b91a9030
Refactor the constructor and units of LeapArray and related statistic class
...
- The constructor now accept `sampleCount` and `windowIntervalMs` so that it can match the two basic properties
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-24 18:02:50 +08:00
Eric Zhao
8096b22eb1
Add cluster embedded mode handling logic for parameter flow checker
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-18 19:58:08 +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
a5819e092d
Add HTTP command for modifying global state and client config
...
- Add several command handlers
- Update cluster state manager
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:54:30 +08:00
Eric Zhao
9a69104f79
Refactor param flow checker to support embedded server mode
...
- Add exception item extracting method in ParamFlowRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:52:28 +08:00
Eric Zhao
1043648fbc
Update parameter flow rule to adapt to cluster mode and extract rule util class
...
- Update ParamFlowRule to support cluster mode
- Add `ParamFlowClusterConfig` to provide cluster mode items for the rule
- Update ParamFlowChecker to support cluster flow mode
- Extract ParamFlowRuleUtil class
- Change type of `flowId` from Integer to Long
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:52:21 +08:00
Eric Zhao
09ba7f081b
Resolves #256 : Support parameters in entry of Sentinel annotation support
...
- To enable parameter flow control in Sentinel annotation support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-21 16:46:55 +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
f8bc6f631a
Code and javadoc refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-20 20:06:55 +08:00
Eric Zhao
7fe3656e64
Update dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-19 14:37:54 +08:00
Eric Zhao
61a75af379
Add exception count trace for Sentinel annotation aspectj support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-02 19:22:00 +08:00
bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
2018-11-01 17:44:36 +08:00
Eric Zhao
e0328d412a
Remove logic of entering context when entering resource in annotation pointcut
...
- Rename AbstractSentinelAspect to AbstractSentinelAspectSupport
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-31 15:34:06 +08:00
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
2018-10-31 15:19:27 +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
5aad448191
Refactor logic of getting resource name in Sentinel annotation
...
- Enhance resolve name logic in MethodUtil
- Add test case for MethodUtil
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-24 14:46:42 +08:00
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
2018-10-24 09:42:51 +08:00
Carpenter Lee
aaf88b8a0a
Rename ParamFlowRule.blockGrade to grade
2018-10-16 20:34:40 +08:00
Carpenter Lee
52d16e62f2
update nacos version to 0.2.1
...
update nacos version to 0.2.1. change default port. 8080 -> 8848. fix port conflict.
2018-10-16 14:05:20 +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
87076a6977
Code and javadoc refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-27 16:51:30 +08:00
Eric Zhao
5f5443a546
Update sample count for ParameterMetric
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-27 14:28:05 +08:00