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>
5 years ago
Eric Zhao
1ffce6b579
Fix test dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
逅弈
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
5 years ago
qinggeng
ec0883d22e
Add AuthInfo parameter in the constructor of ZooKeeperDataSource to support ACL ( #508 )
5 years ago
Eric Zhao
5b260a9f75
Bump version to 1.5.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
2e0fe23384
Bump version to 1.4.2 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
020a63fdb5
Bug fix: NPE when adding event count in ParamMapBucket ( #494 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
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>
5 years ago
yanlinly
1368154000
Update Nacos SDK version to 0.8 and update Nacos namespace demo ( #474 )
5 years ago
Eric Zhao
bac35ac100
Add back thread count metric type support for parameter flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
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
5 years ago
Eric Zhao
3109ac4bef
Remove slf4j dependency in sentinel-annotation-aspectj
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
d4d85dbc7c
Bump version to 1.4.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
225d81ed93
Bump version to 1.4.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
832d6e425d
Update document to meet Markdown lint
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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
6 years ago
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>
6 years ago
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>
6 years ago
Eric Zhao
8096b22eb1
Add cluster embedded mode handling logic for parameter flow checker
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
9916dad403
Bump version to 1.4.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
c7b5653249
Bump version to 1.4.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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>
6 years ago
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>
6 years ago
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>
6 years ago
Eric Zhao
f539b5b827
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>
6 years ago
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>
6 years ago
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>
6 years ago
Eric Zhao
f8bc6f631a
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
7fe3656e64
Update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
61a75af379
Add exception count trace for Sentinel annotation aspectj support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
6 years ago
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>
6 years ago
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
6 years ago
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
531578ce54
Bump version to 1.3.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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>
6 years ago
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
6 years ago
Carpenter Lee
aaf88b8a0a
Rename ParamFlowRule.blockGrade to grade
6 years ago
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.
6 years ago
Eric Zhao
94dc7966ae
Bump version to 0.2.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
1063974ceb
Bump version to 0.2.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
87076a6977
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
5f5443a546
Update sample count for ParameterMetric
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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.
6 years ago
Eric Zhao
cf1cf8a59f
Update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
b1f33675c5
Improvements for Redis data source and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
moon tiger
4ff2e37abb
Add DataSource integration for Redis ( #102 )
- This implementation uses Lettuce as the internal client, and leverages Redis pub-sub feature to implement push mode data source. (by @tigerMoon )
6 years ago
Eric Zhao
50a5610010
Enhance file data source and flow rule manager
- Some refinement for file data source
- Add resource name checking in FlowRuleManager to avoid NPE
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
yfh0918
175452a96a
Enhance FileRefreshableDataSource and FileWritableDataSource ( #125 )
- Add method to check if the resource is modified in `AutoRefreshDataSource`
- Implement FileWritableDataSource
6 years ago