bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
6 anos atrás
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
6 anos atrás
xcaspar
ef96b15f22
Improve log info and condition about fetching metrics ( #219 )
- Receiving "No metrics" response won't cause error log
- Improve log about fetching metrics
6 anos atrás
Eric Zhao
df84b6b41e
Update javadoc and code refinement for AbstractRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
6 anos atrás
Eric Zhao
e322df2d32
Update documentation and issue template
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
d43275034c
Update Maven plugin version and fix CircleCI build failure
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
eace8ab2ff
Add support for adding param rule / authority rule in resource page of dashboard
- Decouple rule checking from controller (now in service)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Carpenter Lee
bd0de9464c
Avoid ConcurrentModificationException when getting machine map in AppInfo ( #205 )
- Avoid ConcurrentModificationException when `getMachines()` by deep clone the machine map
- Enhance the code to avoid potential ConcurrentModificationException
- Add test cases
6 anos atrás
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>
6 anos atrás
shannon312
4198d217e5
Extract slash as a constant to reuse in FilterUtil ( #204 )
6 anos atrás
Carpenter Lee
d726e62de2
Add BlockException parameter to UrlBlockHandler.blocked() method
6 anos atrás
Eric Zhao
531578ce54
Bump version to 1.3.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
6 anos atrás
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.
6 anos atrás
Eric Zhao
0855809149
Add support for authority rule configuration in Sentinel Dashboard ( #189 )
- Update dashboard API client to support authority rule commands
- Add REST API and frontend page for authority rules
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Carpenter Lee
bbea62a5c7
Add StringUtil.capitalize() method
6 anos atrás
Carpenter Lee
1f3640fbfa
Change logo size
6 anos atrás
Eric Zhao
5ba1ccdea8
Typo fix for FlowThreadDemo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Carpenter Lee
aaf88b8a0a
Rename ParamFlowRule.blockGrade to grade
6 anos atrás
Carpenter Lee
b85d8ef1db
Change behavior when exception occurred in InitExecutor. Will not call System.exit(), just print stack trace
6 anos atrás
jasonjoo2010
d861a364c9
Fix bug for body reading in HttpServerHandler of sentinel-transport-netty-http ( #185 )
- Do a manual copying from unpooled direct buffer.
6 anos atrás
Eric Zhao
7626bf4a49
Code enhancement for #161
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Carpenter Lee
ba10d10aa9
Bug fix: fix wrong log file name checking ( #182 )
6 anos atrás
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 anos atrás
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
6 anos atrás
jasonjoo2010
a757950b9a
Fix the wrong coordinate scaling of QPS chart (passed/blocked) in dashboard ( #172 )
Fixes #22 (by @jasonjoo2010 )
6 anos atrás
Eric Zhao
b06bb02b2c
Add rule configuration support for parameter flow control in Sentinel Dashboard ( #176 )
- Update dashboard API client to support authority and parameter flow commands
- Add REST API controller for parameter flow rules in dashboard
- Add pages for configuring parameter flow rules
- Update dependencies: upgrade Spring Boot to 2.x and remove unused dependencies
- Other refinements
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
李豪
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
6 anos atrás
Carpenter Lee
570c3ee5b7
Change intervalInSec of StatisticNode.rollingCounterInMinute to 60 seconds
6 anos atrás
李豪
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;
6 anos atrás
Eric Zhao
a25f25bea6
Add demo for SlotChainBuilder SPI
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Carpenter Lee
85540229e9
Change eagleEye log path when log base configured.
6 anos atrás
Carpenter Lee
4610bd3da6
Use System property to config log base dir
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
6 anos atrás
Eric Zhao
94dc7966ae
Bump version to 0.2.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
1063974ceb
Bump version to 0.2.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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>
6 anos atrás
Eric Zhao
87076a6977
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
5f5443a546
Update sample count for ParameterMetric
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
Eric Zhao
8c2cceca5e
Add config for Codecov
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
cf1cf8a59f
Update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
9e012d2e20
Refactor version representation and add client version to heartbeat
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
7c179bb592
Update integration test and demo for async entry
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
e50fc55d68
Add more test cases for Sentinel core internal (e.g. Entry, CtSph)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
fe6b4f4865
Some code update and rearrangement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás