Eric Zhao
8d84349607
Add returning modified status of `updateProperty` method in SentinelProperty
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
9165fe0d61
Support multiple tokens per request entry ( #380 )
- Refactor MetricBucket to support add multiple count
- Refactor Node and Metric related classes
- Refactor for StatisticSlot
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
832d6e425d
Update document to meet Markdown lint
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
leitao
feb44e74d4
do not remove the first node( #339 ) ( #355 )
Do not remove the first node
5 years ago
cdfive
44409182ae
Make the default statistic max RT value `TIME_DROP_VALVE` configurable ( #292 )
@see https://github.com/alibaba/Sentinel/issues/276
5 years ago
Zhe Jiang
197c982c02
doc: fix SphO document typo ( #357 )
5 years ago
Young Hu
365ffec636
doc: update awesome-sentinel.md ( #354 )
5 years ago
Forever杨
f4d1ac91cc
Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard ( #353 )
- the wrong `isEmpty` check causes the rule cannot be deleted
5 years ago
cdfive
25289c287d
doc: add blog links on awesome-sentinel.md ( #352 )
- by @cdfive
5 years ago
Eric Zhao
22ab527064
Update README.md and doc
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
Eric Zhao
d85c385caa
Add awesome-sentinel and README to doc
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 years ago
format
4592c45741
Upgrade nacos-client version and construct NacosDataSource by Properties ( #348 )
* Polish #272 : upgrade nacos-client version and create a new constructor for NacosDataSource to support namespace, endpoint, ak, sk and so on
* check properties in NacosDataSource
5 years ago
Allen Sun
af3360948d
CI: make Circle CI to linter repo details ( #344 )
Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>
5 years ago
leitao
8d5834d2d3
Translate some javadoc to English in MetricFetcher ( #338 )
5 years ago
cdfive
4fbccd879b
Add some unit test for sentinel-transport-netty-http module ( #321 )
5 years ago
Eric Zhao
f046194d6b
Add sampleCount and windowInterval item to cluster config of flow rule and param rule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Carpenter Lee
c047457c2f
Fix/list metric files ( #331 )
* Fix #330 : fix listMetricFiles() returns wrong file name list.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
* Add timestamp check when read metrics.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
* Refine test case
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
6 years ago
Eric Zhao
d3bbe290c2
Refinement for heartbeat logic in sentinel-transport related module ( #312 )
- Code refinement for heartbeat component in transport related module
- Add remove support of `SentinelConfig`
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
96dac7a1e0
Update constructor of Sentinel cluster server statistic component
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
a2b91a9030
Refactor the constructor and units of LeapArray and related statistic class
- The constructor now accept `sampleCount` and `windowIntervalMs` so that it can match the two basic properties
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
c7c59e9de7
Move local frontend lib assets from dist to lib directory
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
d88ffcd697
Small improvements for `sentinel-transport`
- Modify the init order of command center init func to -1 (prioritized than before)
- Add CommandConstants for common use
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
8096b22eb1
Add cluster embedded mode handling logic for parameter flow checker
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
d3eb638931
Update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
leitao
e5cc277f0a
Remove duplicate class in sentinel-core ( #309 )
ClusterTokenClient.java,TokenClientProvider.java in package `com.alibaba.csp.sentinel.cluster`
6 years ago
Eric Zhao
cfcf45de99
Update README.md
6 years ago
Eric Zhao
9916dad403
Bump version to 1.4.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Carpenter Lee
84934b8679
Catch Throwable rather than Exception when sending heartbeat.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
6 years ago
Eric Zhao
c7b5653249
Bump version to 1.4.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
40cd335ec1
Update fastjson dependency to 1.2.54
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
f49870402d
Move CDN resources to local in Sentinel Dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
0059b1a42d
Add frontend service and pages for Sentinel cluster flow control in dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
8961927a12
Add dashboard logic for Sentinel cluster flow control
- Update SentinelApiClient to support new-added command APIs
- Add controller for cluster config
- Add flow controller v2 for global rule pulling / pushing
- Extract dynamic rule provider and publisher interface for customized extensions
- Add basic cluster config service
- Add basic Nacos integration (in test as an example)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
fba114d43e
Merge pull request #294 from alibaba/feature/cluster-flow-control
- Add default cluster flow control implementation
6 years ago
Eric Zhao
465b44b7e7
Merge branch 'master' into feature/cluster-flow-control
6 years ago
Eric Zhao
f01fe2b437
Add demo module for Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
2735954afd
Update cluster related command APIs and some enhancement and fix for cluster module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
a5819e092d
Add HTTP command for modifying global state and client config
- Add several command handlers
- Update cluster state manager
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
Eric Zhao
2d1313f220
Update test dependency of sentinel-cluster-server-default
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 years ago
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