Eric Zhao
a731811d27
Polish default cluster server module for initial work
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
138c265a34
Polish cluster client module
- Initial work
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
9a69104f79
Refactor param flow checker to support embedded server mode
- Add exception item extracting method in ParamFlowRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
2689a3ff43
Add `@RequestType` annotation and common config supplier registry
- Add a `@RequestType` annotation for common use (e.g. request handler, encoder or decoder)
- Add a registry for universal config supplier (e.g. namespace of client)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
9314fca8a6
Add cluster state manager to manage cluster mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
e31e7e0208
Update cluster related logic in core
- Remove "borrow-from-ref" mode
- Improve flow checker to support both embedded server mode and client mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
ba72d4c67a
Rearrangement and refinement of statistic code in core
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
9d42edcffa
Add cluster token server interface to core and support embedded mode
- Add a EmbeddedClusterTokenServer interface
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
9f2678eb6c
Update token client interface in sentinel-core
- Add `start` and `stop` method for automatic control
- Update TokenClientProvider using SpiLoader
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
b973aca1f5
Add implementation for default token server module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f83ea428ff
Update token client interface and default implementation
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
6caa19ea95
Add default Sentinel cluster transport implementation with Netty
- Add Netty transport client implementation and default cluster token client
- Add config manager for cluster client
- Add codec SPI mechanism for client entity decoder / writer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
b3ae7f58bf
Add common module for Sentinel default cluster implementation
- Add a `ClusterTransportClient` for transport abstraction of Sentinel cluster
- Add universal request/response interface and common ClusterRequest/ClusterResponse abstraction
- Add common request/response data entity
- Add basic abstraction of codec (EntityWriter and EntityDecoder)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
1043648fbc
Update parameter flow rule to adapt to cluster mode and extract rule util class
- Update ParamFlowRule to support cluster mode
- Add `ParamFlowClusterConfig` to provide cluster mode items for the rule
- Update ParamFlowChecker to support cluster flow mode
- Extract ParamFlowRuleUtil class
- Change type of `flowId` from Integer to Long
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
b215e8784e
Update flow rule for cluster mode and extract util class
- Add new field `clusterMode` and `clusterConfig` for cluster mode
- Add a `ClusterFlowConfig` class for specific items for cluster flow control
- Update FlowRuleChecker to support cluster mode
- Extract valid rule checking and rule map generating logic to FlowRuleUtil
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
6545a90d46
Add basic interface and entity for Sentinel cluster flow control
- Add a universal `TokenService` SPI interface for both local flow control and distributed flow control
- Add TokenResult entity to represents result of acquiring token
- Add `ClusterTokenClient` as the SPI interface for client of Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
4342b1e935
Code refinement for LeapArray
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
7bf2a809e9
Code and javadoc improvement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
09ba7f081b
Resolves #256 : Support parameters in entry of Sentinel annotation support
- To enable parameter flow control in Sentinel annotation support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
2237727a11
Add prioritized entry support in ProcessorSlot and SphU ( #255 )
- Refactor the slot interface to support prioritized entry
- Add `entryWithPriority` in SphU
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f2a401cdb3
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f8bc6f631a
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
c42ba34568
Add basic helper functional interface
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
7fe3656e64
Update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
1e46ff11e5
Add modules for Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
6765130f1b
Add log for fatal error when InitExecutor failed
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
a680b4c5e3
Add sort for flow rules when loading rules
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
1ca28d8974
Update test cases for flow slot and checker
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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>
6 years ago
Eric Zhao
700d24db4e
Update README.md
- Add Mandao logo and rearrange logo size
6 years ago
Eric Zhao
aad8631456
Update README.md
- Add "Who is using" part and add some logos
6 years ago
Eric Zhao
d01d0560f2
Fix argLine of surefire to make code coverage work again
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
d29c4ca9c9
Update gRPC adapter test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Carpenter Lee
d71e95c611
Remove ContextUtil.enter() in client/consumer side
6 years ago
Eric Zhao
257dde1d5e
Some improvements for Sentinel dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
695fa9d84c
Update test cases for Sentinel web filter and gRPC adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
3de817be10
Update .travis.yml and dependencies to support build with JDK 11
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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>
6 years ago
Eric Zhao
61a75af379
Add exception count trace for Sentinel annotation aspectj support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
bitonly
8f85dc5643
Add overloaded handleBlockException method for customized extension ( #223 )
6 years ago
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 years ago
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 years ago
Eric Zhao
df84b6b41e
Update javadoc and code refinement for AbstractRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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 years ago
bitonly
cb09304ee2
Add abstract Sentinel aspect class for extension ( #214 )
6 years ago
Eric Zhao
e322df2d32
Update documentation and issue template
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
bffa4ff777
Bump version to 1.4.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f4b5fae130
Bump version to 1.3.0-GA and update dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
d43275034c
Update Maven plugin version and fix CircleCI build failure
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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 years ago