tianhao
6e0d116751
calculate process cpu usage to support application running in container environment
5 anni fa
xue8
5f203aa79f
Flexible loggers' support through SPI mechanism with name `com.alibaba.csp.sentinel.log.Logger` ( #1265 )
* There are two types of logger for command center and common modules specified by annotation of `LogTarget`
* Add implementing examples in `sentinel-demo/sentinel-demo-log-logback`
* All implementations should support placeholder '{}'
4 anni fa
cdfive
c1ff9135ee
Fix NPE in Tracer when context size exceeds the limit ( #1293 )
4 anni fa
Eric Zhao
87142ce512
Bump version to 1.7.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
4 anni fa
Eric Zhao
9c909e3631
Bump version to 1.7.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
e9d730cc39
test: Fix unstable test cases in MetricExitCallbackTest
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
fangwentong
0e110c68ea
Fix the logic of getting maxSuccessQps in StatisticNode ( #1196 )
5 anni fa
Eric Zhao
a63c1841ee
Support setting config file path via system env and improve error handling in SentinelConfigLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
c70565167f
refactor: Get the max allowed RT directly from SentinelConfig.statisticMaxRt() ( #1173 )
- to avoid the dependency chain: Constants -> SentinelConfig
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
于玉桔
24f8d75601
Fix the incorrect logic of handling the end separator of the log directory in LogBase ( #1172 )
5 anni fa
Eric Zhao
72a58f7ea7
Add Consumer functional interface in sentinel-core utils
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
9705f54611
Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
8cdf1de854
Bump version to 1.7.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
6bb2de8750
Support classification for Sentinel resources
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
cf5b955f12
Improve AssertUtil for collection checking
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
74a40aa285
Improve Node and Metric interface to support conditional metric retrieval ( #1115 )
* Add detailsOnCondition method in Metric interface to filter MetricNode within the time condition.
* Add rawMetricsInMin method in Node interface, which will retrieve and generate metric items from the min-level sliding window on condition.
* Add test cases for detailsOnCondition.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
b0905547ff
Use ServiceLoaderUtil to create SPI ServiceLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
8d5654f727
Add ServiceLoaderUtil to improve SPI classloader mechanism and update SpiLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
wangyb
dbf1f97dde
Fix the cluster rule checking logic in FlowRuleUtil#checkClusterField() ( #1105 )
5 anni fa
Eric Zhao
826447bc82
Fix the bug that resource name displayed in ClusterNode-related command APIs for SphU.entry(method) is incorrect ( #1078 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
windWheel
4e55a6a749
Optimize the slot order in DefaultSlotChainBuilder ( #1056 )
5 anni fa
Eric Zhao
8b40981fca
Improve SystemRuleManager and refactor checking logic of maxCpuUsage strategy ( #1050 )
- The BBR period for maxCpuUsage strategy is deprecated. Now Sentinel will just check the CPU usage value, which could avert surge of CPU usage quickly
- Improve SystemRuleManager and SystemStatusListener
- Add some test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
9ff6e47bb0
Add concrete exception message in AsyncEntry#cleanCurrentEntryInLocal ( #1047 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
于玉桔
1253471078
Code refinement for JDK-picked classes ( #1014 )
5 anni fa
aq0706
56c73698cb
Support reading files with customized charset in ConfigUtil ( #961 )
5 anni fa
Lin.Liang
61c8397e48
Fix temp file problem in log test cases ( #908 )
5 anni fa
Lin.Liang
326dd4434d
Fix the compatibility problem of ConfigUtil for Windows environment ( #903 )
5 anni fa
Eric Zhao
90662a423b
Code refinement for Sentinel config classes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Lin.Liang
ff33de199a
Support arbitrary configuration properties file path for Sentinel ( #804 )
- Support customized log and configuration properties directory
5 anni fa
yidadi
c14e3296cb
Refine the methods and variable name in SlotChainProvider ( #871 )
5 anni fa
Braavos
dca4440d40
Add unit tests for com.alibaba.csp.sentinel.eagleeye.EagleEyeCoreUtils ( #854 )
5 anni fa
cdfive
8661d9abc1
Add support for logging into console for common logs ( #836 )
* Add a ConsoleHandler to support logging into stdout and stderr.
* Add a `csp.sentinel.log.output.type` property to configure for output type of record logs (only a temporary design)
* Add millisecond to the format of CspFormatter
5 anni fa
Eric Zhao
00f116e344
Refine the DegradeRule and add validating logic for the two new attributes
- improvement of #789
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Lin.Liang
2eecd3ac6a
Make the value of RT_MAX_EXCEED_N in DegradeRule configurable ( #789 )
- Add two attributes in DegradeRule: rtSlowRequestAmount and minRequestAmount
5 anni fa
Lin.Liang
e6e27c6faa
Make maxParamByteSize configurable in ParamFlowRequestDataWriter of cluster client module and fix bugs ( #823 )
5 anni fa
kexianjun
0176f0ead3
Use calculateTimeIdx to calculate array idx in LeapArray#getPreviousWindow ( #723 )
* also some code cleanup
5 anni fa
Lin.Liang
ee38587a6e
Remove redundant operation when adding child node in NodeSelectorSlot ( #794 )
5 anni fa
Lin.Liang
3a9e2629b7
Replace AtomicInteger with LongAdder for curThreadNum of StatisticNode ( #747 )
5 anni fa
Eric Zhao
f8ebbbccf4
Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
3d2c33ef1d
Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Carpenter Lee
f3e705c5f3
Add exceptionsToTrace and exceptionsToIgnore support in Tracer ( #766 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anni fa
Eric Zhao
54da16d304
Refactor FlowRuleChecker to improve code reuse
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
yikangfeng
4ec0462e31
Add getCpuUsageThreshold() method in SystemRuleManager ( #770 )
5 anni fa
Carpenter Lee
18d8b4c8a7
Add CPU usage and system load to metric ( #749 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anni fa
Eric Zhao
6e4560845c
Update SENTINEL_VERSION constant to 1.6.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
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>
5 anni fa
Jason Joo
ecf4822ae1
Make SentinelConfig.loadProps() thread-safe using CopyOnWriteArraySet ( #706 )
5 anni fa
Eric Zhao
346e9b274e
Bump version to 1.6.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
Eric Zhao
b1345f751f
Bump version to 1.6.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anni fa
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>
5 anni fa