Eric Zhao
d4d63fad95
Extract flow rule checker from FlowRule
- Extract flow rule checker from legacy `passCheck`
- Remove redundant code
- Refactor FlowSlot (some logic moved from FlowRuleManager)
- Rename `Controller` to `TrafficShapingController`
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
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
il y a 6 ans
Eric Zhao
df84b6b41e
Update javadoc and code refinement for AbstractRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
0c15dd9fe3
Fixes #198 : Enhance rule checking in rule managers and Sentinel Dashboard ( #202 )
- Enhance rule checking in rule managers and Sentinel Dashboard frontend
- Enhance error information when reporting invalid fields in rule dialog
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
531578ce54
Bump version to 1.3.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
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>
il y a 6 ans
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
il y a 6 ans
Carpenter Lee
85c844eb9c
Config whether pid is needed in the log file name ( #194 )
- Change log file name;
- Add configurability to log file name and metric file name.
il y a 6 ans
Carpenter Lee
bbea62a5c7
Add StringUtil.capitalize() method
il y a 6 ans
Carpenter Lee
b85d8ef1db
Change behavior when exception occurred in InitExecutor. Will not call System.exit(), just print stack trace
il y a 6 ans
Eric Zhao
7626bf4a49
Code enhancement for #161
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Carpenter Lee
ba10d10aa9
Bug fix: fix wrong log file name checking ( #182 )
il y a 6 ans
jasonjoo2010
0916a9bfa2
Enhancements in transport-netty-http and properties related ( #161 )
* sentinel-transport-netty-http will also retry when port specified has been used
* LogBase support variable arguments
* Remove duplicated JVM properties overriding in SentinelConfig
* Add VersionUtil to get version from jar
il y a 6 ans
李豪
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
il y a 6 ans
Carpenter Lee
570c3ee5b7
Change intervalInSec of StatisticNode.rollingCounterInMinute to 60 seconds
il y a 6 ans
李豪
03922dbf6c
Enhancement/normalize metric field ( #170 )
normalize metric fields and methods:
- rename exception to exceptionQps;
- remove ed postfix of all fields and methods about metrics;
il y a 6 ans
Carpenter Lee
85540229e9
Change eagleEye log path when log base configured.
il y a 6 ans
Carpenter Lee
4610bd3da6
Use System property to config log base dir
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
il y a 6 ans
Eric Zhao
94dc7966ae
Bump version to 0.2.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
1063974ceb
Bump version to 0.2.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
9c2683e6ba
Log warn when amount of context exceeds the max capacity for the first time
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
87076a6977
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
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.
il y a 6 ans
Eric Zhao
9e012d2e20
Refactor version representation and add client version to heartbeat
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
7c179bb592
Update integration test and demo for async entry
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
e50fc55d68
Add more test cases for Sentinel core internal (e.g. Entry, CtSph)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
fe6b4f4865
Some code update and rearrangement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
62decf0464
Some bug fixes and enhancement for async entry support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
cbaacfda55
Bug fix for automatic exit of default context when exiting the entry
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
be43a31dc4
Fix internal bug when amount of context exceeds the threshold ( #152 )
- When amount of context exceeds the threshold, the `NullContext` will be set to current thread local. Thus, when checking context in `CtSph#entry`, once `NullContext` detected, the entry will not do rule checking on the slot chain.
- Cache the default context during initialization. Then when amount of context exceeds the threshold, entries under default context can do rule checking under default context.
- Enhance the error message
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Carpenter Lee
91f27977e9
1. Refector SampleCountProperty and IntervalProperty;
2. Add more java doc for LeapArray.
il y a 6 ans
Eric Zhao
015efe2f9b
Separate checking logic from AuthorityRule and add test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Carpenter Lee
b5b3f6edee
Bug fix: fix probability of metric lose
il y a 6 ans
Eric Zhao
b1f33675c5
Improvements for Redis data source and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
54905497d0
Refactor LeapArray to reuse code for current bucket
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
2a3e33590f
Update test cases and demo for async support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
ca2f4d9fae
Support extensible slot chain builder using SPI mechanism ( #145 )
- Support extensible `SlotChainBuilder` using SPI mechanism
- Add a `SlotChainProvider` to load slot chain builder and create new slot chains
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
d798794ab3
Refactor the context and entry to support asynchronous invocation chain
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
d142a07a39
Enhance log and null check for rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
Eric Zhao
ed30f85f9c
Fixes #128 : Fix early return when exception ratio is 100%
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans
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>
il y a 6 ans
Carpenter Lee
6799da270d
Fixed #109 : fix miss-usage of ClusterNode.successQps() in DegradeRule.passCheck() method
il y a 6 ans
Shalti
2772f189ab
Fixed CR comments
il y a 6 ans
Shalti
dc0a7086b5
Renamed to MetricsReader
il y a 6 ans
Shalti
ac8698ed9f
Refactored some classes
il y a 6 ans
Carpenter Lee
d716f0f14a
Fixes #99, fix miss comparison of FlowRule.maxQueueingTimeMs
il y a 6 ans
子矜
cedd420336
jialianglinjl
il y a 6 ans
Eric Zhao
23f65b9fee
Update dependencies and add log
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
il y a 6 ans