Eric Zhao
bf34f8b3be
Polish Sentinel dashboard frontend for cluster flow control enhancement
- Add cluster server list and assign page and client list page (for a specific app)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
8d413e1645
Polish Sentinel dashboard backend for cluster flow control enhancement
- Add cluster token server management controller and service for app
- Other enhancements and fixes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
f82fcd696f
Add basic monitoring command API for cluster token server
- Also add top-K frequent parameter statistic support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
1b68d0c9a0
Polish cluster token server handler related logic
- Enlarge retry timeout to 2s by default
- Improve remote address representation
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
e4d0f4c6ab
Improve namespace register logic for embedded token server mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
6a9d479216
Improvements for cluster token client retry and stop control logic
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
aa6c334703
Disable spell checking in Circle CI lint temporary (need more config later)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
c12f016b38
Polish cluster flow control demo to be more instructive
- Add a demo Spring Boot application integrated with cluster flow control to show the recommended way
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
40368bdcd6
Config and log enhancement for cluster token client
- Refactor token client common config and assign config
- Log enhancement when transport to token server failed
- Add `getState` method to `ClusterTokenClient` interface
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
77df7d23c9
Optimize Netty dependency of cluster modules
- use `netty-handler` instead to reduce size
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
25e96a8cd3
Improve cluster state manager
- Support stop cluster mode (`NOT-STARTED` mode)
- Fix bug when updating cluster state via command API (should modify via state property)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
99bdb9cf3c
Add total QPS limit control for specific namespace in cluster flow control ( #382 )
- Add `UnaryLeapArray` and `RequestLimiter` to enable simple QPS limit
- Improve cluster rule manager and server config manager to support request limiter
- Support `TOO_MANY_REQUEST` status in client side
- Also improve the automatic namespace register of embedded server mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
d2d1313e26
Remove markdown-lint-checker from Circle CI lint workflow (there are some bugs in the checker)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
8d84349607
Add returning modified status of `updateProperty` method in SentinelProperty
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
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>
pirms 5 gadiem
Eric Zhao
832d6e425d
Update document to meet Markdown lint
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
leitao
feb44e74d4
do not remove the first node( #339 ) ( #355 )
Do not remove the first node
pirms 5 gadiem
cdfive
44409182ae
Make the default statistic max RT value `TIME_DROP_VALVE` configurable ( #292 )
@see https://github.com/alibaba/Sentinel/issues/276
pirms 5 gadiem
Zhe Jiang
197c982c02
doc: fix SphO document typo ( #357 )
pirms 5 gadiem
Young Hu
365ffec636
doc: update awesome-sentinel.md ( #354 )
pirms 5 gadiem
Forever杨
f4d1ac91cc
Fix wrong empty check in FlowRuleApiPublisher of Sentinel dashboard ( #353 )
- the wrong `isEmpty` check causes the rule cannot be deleted
pirms 5 gadiem
cdfive
25289c287d
doc: add blog links on awesome-sentinel.md ( #352 )
- by @cdfive
pirms 5 gadiem
Eric Zhao
22ab527064
Update README.md and doc
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
Eric Zhao
d85c385caa
Add awesome-sentinel and README to doc
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 5 gadiem
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
pirms 5 gadiem
Allen Sun
af3360948d
CI: make Circle CI to linter repo details ( #344 )
Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>
pirms 5 gadiem
leitao
8d5834d2d3
Translate some javadoc to English in MetricFetcher ( #338 )
pirms 5 gadiem
cdfive
4fbccd879b
Add some unit test for sentinel-transport-netty-http module ( #321 )
pirms 5 gadiem
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>
pirms 6 gadiem
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>
pirms 6 gadiem
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>
pirms 6 gadiem
Eric Zhao
96dac7a1e0
Update constructor of Sentinel cluster server statistic component
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
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>
pirms 6 gadiem
Eric Zhao
c7c59e9de7
Move local frontend lib assets from dist to lib directory
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
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>
pirms 6 gadiem
Eric Zhao
8096b22eb1
Add cluster embedded mode handling logic for parameter flow checker
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Eric Zhao
d3eb638931
Update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
leitao
e5cc277f0a
Remove duplicate class in sentinel-core ( #309 )
ClusterTokenClient.java,TokenClientProvider.java in package `com.alibaba.csp.sentinel.cluster`
pirms 6 gadiem
Eric Zhao
cfcf45de99
Update README.md
pirms 6 gadiem
Eric Zhao
9916dad403
Bump version to 1.4.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Carpenter Lee
84934b8679
Catch Throwable rather than Exception when sending heartbeat.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
pirms 6 gadiem
Eric Zhao
c7b5653249
Bump version to 1.4.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Eric Zhao
40cd335ec1
Update fastjson dependency to 1.2.54
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Eric Zhao
f49870402d
Move CDN resources to local in Sentinel Dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Eric Zhao
0059b1a42d
Add frontend service and pages for Sentinel cluster flow control in dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
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>
pirms 6 gadiem
Eric Zhao
fba114d43e
Merge pull request #294 from alibaba/feature/cluster-flow-control
- Add default cluster flow control implementation
pirms 6 gadiem
Eric Zhao
465b44b7e7
Merge branch 'master' into feature/cluster-flow-control
pirms 6 gadiem
Eric Zhao
f01fe2b437
Add demo module for Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem
Eric Zhao
2735954afd
Update cluster related command APIs and some enhancement and fix for cluster module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
pirms 6 gadiem