Lin.Liang
2eecd3ac6a
Make the value of RT_MAX_EXCEED_N in DegradeRule configurable ( #789 )
- Add two attributes in DegradeRule: rtSlowRequestAmount and minRequestAmount
5 vuotta sitten
Lin.Liang
e6e27c6faa
Make maxParamByteSize configurable in ParamFlowRequestDataWriter of cluster client module and fix bugs ( #823 )
5 vuotta sitten
Eric Zhao
0f6cadbc93
doc: remove vivo logo in README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Luan Louis
f762ba2042
doc: add the blog link to awesome-sentinel.md about handling RESTful API resources ( #825 )
blog by @LuanLouis
5 vuotta sitten
cdfive
e810ab849e
Fix multiple slash command name issue in sentinel-transport-netty-http module ( #817 )
5 vuotta sitten
Jobs Wang
e3b9f99f9d
doc: add the link of sentinel-pigeon-adapter repo to awesome-sentinel.md ( #781 )
5 vuotta sitten
Eric Zhao
281d3420ca
dashboard: code refinement for version and auth API
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
HiSEN
72276a3951
dashboard: Add HTTP API to get the version the of the dashboard ( #800 )
5 vuotta sitten
liming
062385f306
doc: update awesome-sentinel.md ( #815 )
5 vuotta sitten
kexianjun
0176f0ead3
Use calculateTimeIdx to calculate array idx in LeapArray#getPreviousWindow ( #723 )
* also some code cleanup
5 vuotta sitten
Lin.Liang
ee38587a6e
Remove redundant operation when adding child node in NodeSelectorSlot ( #794 )
5 vuotta sitten
Lin.Liang
3a9e2629b7
Replace AtomicInteger with LongAdder for curThreadNum of StatisticNode ( #747 )
5 vuotta sitten
TomlongTK
9583e18706
doc: add a dashboard multiple data-source adapter demo to Awesome Sentinel ( #806 )
by @finefuture
5 vuotta sitten
Eric Zhao
4182c013c8
dashboard: Filter internal virtual resources in MetricFetcher
- also fix pom.xml to suppress warnings
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
f8ebbbccf4
Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
3d2c33ef1d
Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Carpenter Lee
f3e705c5f3
Add exceptionsToTrace and exceptionsToIgnore support in Tracer ( #766 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 vuotta sitten
Eric Zhao
8d0bb691b3
Fix the bug for parsing with only non-param gateway rules
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
ae0b8a5c74
Refactor API gateway common module to separate converted rules from other rule managers
- Separate converted parameter rules from ParamFlowManager. Now the converted rules will be kept in GatewayRuleManager directly.
- Add a GatewayFlowSlot to do separate flow checking for generated rules.
- Refactor rule converting mechanism: now gateway rules in normal mode (without parameter) will also be converted to a parameter flow rule. The index will be the last (the last position). In GatewayParamParser we put a constant value to the last position.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
77dec5f845
Separate parameter metric storage from ParamFlowSlot and improve ParamFlowRuleUtil
- Add a ParameterMetricStorage specific for caching ParameterMetric (moved from ParamSlot)
- Add rule map building helper method in ParamFlowRuleUtil so that we can reuse it in other rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
54da16d304
Refactor FlowRuleChecker to improve code reuse
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
yikangfeng
4ec0462e31
Add getCpuUsageThreshold() method in SystemRuleManager ( #770 )
5 vuotta sitten
threedr3am
83ab401ab4
dashboard: fix wrong bean name of FlowRuleZookeeperProvider sample ( #765 )
5 vuotta sitten
Eric Zhao
0508c92665
Fix the bug that parameters are not carried when exiting entries in SentinelReactorSubscriber
5 vuotta sitten
Carpenter Lee
18d8b4c8a7
Add CPU usage and system load to metric ( #749 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 vuotta sitten
尹吉欢
274ecb51c3
Fix the bug that Chinese characters are malformed in response body of ZuulBlockFallbackProvider ( #737 )
5 vuotta sitten
Eric Zhao
6e4560845c
Update SENTINEL_VERSION constant to 1.6.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
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 vuotta sitten
haofangyuan
55838d9fb0
dashboard: Fix empty rule pushing bug of FlowRuleZookeeperPublisher sample ( #732 )
5 vuotta sitten
kexianjun
1d1878c1dd
dashboard: Add ZooKeeper flow rule dynamic publisher sample ( #714 )
5 vuotta sitten
Jason Joo
ecf4822ae1
Make SentinelConfig.loadProps() thread-safe using CopyOnWriteArraySet ( #706 )
5 vuotta sitten
Eric Zhao
346e9b274e
Bump version to 1.6.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
b1345f751f
Bump version to 1.6.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
7546bcc83b
Add basic demo for Sentinel Zuul adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
1baac7783d
Refactor and improve Sentinel Zuul Adapter
- Now the adapter is based-on sentinel-api-gateway-adapter-common and supports both proxyId and customized APIs
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
540428bae0
Support getting and updating gateway rules and API groups via transport command
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
kexianjun
4819675f84
dashboard: fix typo in SystemController ( #700 )
5 vuotta sitten
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 vuotta sitten
Eric Zhao
268c5502ed
Update transport module to carry appName in heartbeat message
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
bb4fde58b8
Add appType property field in SentinelConfig
- The `appType` can be retrieved from `csp.sentinel.app.type` field. It's useful to identify the service type (e.g. API gateway).
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
845b258b61
Add demo for Sentinel Spring Cloud Gateway adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
0f875d89f3
Add Sentinel Spring Cloud Gateway adapter module and implementation
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
faceb5f419
Add sentinel-api-gateway-adapter-common module for universal gateway rule and API definition management
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
5f713bd404
Update toString() method of ParamFlowRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
c316211faf
Add loadInstanceList support for SpiLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
Eric Zhao
e9719d32ec
Refactor flow algorithm for parameter flow control and support more traffic shaping mode ( #677 )
* support burst count, statistic interval per rule and throttling mode.
* Add fields in ParamFlowRule to support burst count, throttle, statistic interval per rule.
* Deprecate HotParamLeapArray and use token bucket algorithm directly.
5 vuotta sitten
yikangfeng
08611fae0f
Add exceptionsToIgnore configuration support in @SentinelResource annotation ( #683 )
5 vuotta sitten
zhaixiaoxiang
cb9335126c
test: Fix unstable test cases in OccupiableBucketLeapArrayTest ( #687 )
5 vuotta sitten
Eric Zhao
af126b0c8d
dashboard: improve login page and update related document
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 vuotta sitten
cdfive
4acb907050
dashboard: Add a simple login page to support basic auth ( #659 )
- Add `AuthController` and `SimpleWebAuthServiceImpl`
- Update `AuthFilter`
- Add a simple login page and frontend interceptor to support auth check and session storage
5 vuotta sitten