Eric Zhao
f2a401cdb3
Code and javadoc refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-20 20:52:03 +08:00
Eric Zhao
f8bc6f631a
Code and javadoc refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-20 20:06:55 +08:00
Eric Zhao
c42ba34568
Add basic helper functional interface
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-19 14:39:31 +08:00
Eric Zhao
7fe3656e64
Update dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-19 14:37:54 +08:00
Eric Zhao
1e46ff11e5
Add modules for Sentinel cluster flow control
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-19 14:19:29 +08:00
Eric Zhao
6765130f1b
Add log for fatal error when InitExecutor failed
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-15 17:09:23 +08:00
Eric Zhao
a680b4c5e3
Add sort for flow rules when loading rules
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-15 17:04:33 +08:00
Eric Zhao
1ca28d8974
Update test cases for flow slot and checker
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-14 14:52:39 +08:00
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>
2018-11-14 14:52:39 +08:00
Eric Zhao
700d24db4e
Update README.md
...
- Add Mandao logo and rearrange logo size
2018-11-14 14:14:51 +08:00
Eric Zhao
aad8631456
Update README.md
...
- Add "Who is using" part and add some logos
2018-11-14 09:44:53 +08:00
Eric Zhao
d01d0560f2
Fix argLine of surefire to make code coverage work again
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-12 11:43:58 +08:00
Eric Zhao
d29c4ca9c9
Update gRPC adapter test cases
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-12 10:19:24 +08:00
Carpenter Lee
d71e95c611
Remove ContextUtil.enter() in client/consumer side
2018-11-08 17:52:52 +08:00
Eric Zhao
257dde1d5e
Some improvements for Sentinel dashboard
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-08 17:11:54 +08:00
Eric Zhao
695fa9d84c
Update test cases for Sentinel web filter and gRPC adapter
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-08 17:11:47 +08:00
Eric Zhao
3de817be10
Update .travis.yml and dependencies to support build with JDK 11
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-06 21:01:41 +08:00
Eric Zhao
3b6095899a
Some improvements on Sentinel Dashboard
...
- Fixes #231 : when resource name is too long in resource page, the name will jump out and cover other layout
- Hide `origin` input view in degrade rule dialog
- Refine style and color of buttons in dialogs
- Add support for exception count in degrade rule
- Other improvements
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-05 14:50:16 +08:00
Eric Zhao
61a75af379
Add exception count trace for Sentinel annotation aspectj support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-02 19:22:00 +08:00
bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
2018-11-01 17:44:36 +08:00
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
2018-11-01 17:10:13 +08:00
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
2018-11-01 14:16:11 +08:00
Eric Zhao
df84b6b41e
Update javadoc and code refinement for AbstractRule
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-11-01 10:36:49 +08:00
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>
2018-10-31 15:34:06 +08:00
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
2018-10-31 15:19:27 +08:00
Eric Zhao
e322df2d32
Update documentation and issue template
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 19:07:18 +08:00
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 16:06:32 +08:00
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 15:01:51 +08:00
Eric Zhao
d43275034c
Update Maven plugin version and fix CircleCI build failure
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-30 14:52:14 +08:00
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>
2018-10-30 14:52:14 +08:00
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
2018-10-29 20:19:29 +08:00
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>
2018-10-29 13:35:06 +08:00
shannon312
4198d217e5
Extract slash as a constant to reuse in FilterUtil ( #204 )
2018-10-29 09:22:39 +08:00
Carpenter Lee
d726e62de2
Add BlockException parameter to UrlBlockHandler.blocked() method
2018-10-26 13:51:46 +08:00
Eric Zhao
531578ce54
Bump version to 1.3.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-24 15:52:11 +08:00
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>
2018-10-24 14:46:42 +08:00
waveng
078df9db4f
Sentinel annotation supports method name as default resource name ( #187 )
2018-10-24 09:42:51 +08:00
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.
2018-10-23 19:03:23 +08:00
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>
2018-10-23 09:20:17 +08:00
Carpenter Lee
bbea62a5c7
Add StringUtil.capitalize() method
2018-10-19 11:04:30 +08:00
Carpenter Lee
1f3640fbfa
Change logo size
2018-10-19 09:27:41 +08:00
Eric Zhao
5ba1ccdea8
Typo fix for FlowThreadDemo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-18 17:54:59 +08:00
Carpenter Lee
aaf88b8a0a
Rename ParamFlowRule.blockGrade to grade
2018-10-16 20:34:40 +08:00
Carpenter Lee
b85d8ef1db
Change behavior when exception occurred in InitExecutor. Will not call System.exit(), just print stack trace
2018-10-16 20:24:02 +08:00
jasonjoo2010
d861a364c9
Fix bug for body reading in HttpServerHandler of sentinel-transport-netty-http ( #185 )
...
- Do a manual copying from unpooled direct buffer.
2018-10-16 17:44:28 +08:00
Eric Zhao
7626bf4a49
Code enhancement for #161
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-10-16 17:06:36 +08:00
Carpenter Lee
ba10d10aa9
Bug fix: fix wrong log file name checking ( #182 )
2018-10-16 17:03:22 +08:00
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.
2018-10-16 14:05:20 +08:00
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
2018-10-16 11:23:53 +08:00
jasonjoo2010
a757950b9a
Fix the wrong coordinate scaling of QPS chart (passed/blocked) in dashboard ( #172 )
...
Fixes #22 (by @jasonjoo2010)
2018-10-16 09:58:25 +08:00