Carpenter Lee
341b6426f0
Record total inbound traffic data in metric file ( #555 )
- Regard the total inbound as a "virtual node" with the name `__total_inbound_traffic__`
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anos atrás
Eric Zhao
4073053b3a
Update javadoc for core classes
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Eric Zhao
775484ba61
Add try-with-resources support for Entry class ( #550 )
- `Entry` class now implements `AutoCloseable` so it supports try-with-resources (`close` method adapts to `exit`)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
yikangfeng
9ec1985755
Fix SimpleDateFormat concurrent issue in CspFormatter of sentinel-core ( #548 )
5 anos atrás
Carpenter Lee
5279895581
Add highestCpuUsage in system rule.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anos atrás
Eric Zhao
1ffce6b579
Fix test dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Jason Joo
5d3ccb0863
Solve the issue that sleeping-based tests are not stable and optimize slow tests ( #546 )
5 anos atrás
ATAXGT
10d7c903cf
Optimize circuit breaking state transformation using CAS in DegradeRule ( #538 )
close → open: use `compareAndSet` to update for `cut` attribute (changed to an `AtomicBoolean`)
5 anos atrás
Carpenter Lee
5d2170282f
Add Sph.entryWithPriority() method to receive args
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anos atrás
mjaow
291742c171
Change default value of avgUsedTokens to zero to be more meaningful in DefaultController ( #460 )
5 anos atrás
Eric Zhao
5b260a9f75
Bump version to 1.5.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Eric Zhao
2e0fe23384
Bump version to 1.4.2 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Eric Zhao
412e1ece47
Carry the triggered rule in subclasses of BlockException ( #469 )
* Extract getRule in BlockException and refine override methods in subclasses
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
mjaow
5c0fd5651a
Add volatile in double-checked locking field in ClusterBuilderSlot ( #466 )
5 anos atrás
Eric Zhao
35537a691e
Refinement for test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
cdfive
22e8d85a8f
Add some unit test for StatisticNode, ClusterNode and DefaultNodeBuilder class ( #423 )
5 anos atrás
Andres Almiray
e893dd8c64
Make build faster by reducing fixed waiting time in tests ( #449 )
- Apply awaitility to core tests
- Cache maven local repo in Travis
5 anos atrás
Eric Zhao
cd334406af
Code and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
luoxiangnan
f306a03090
HashMap init optimize when adding new ClusterNode to cluster node map ( #465 )
- reuse old map size to avoid rearrange and rehash the map
5 anos atrás
mjaow
2cf6e29e72
Fix zero-count divide overflow bug in RateLimiterController ( #461 )
5 anos atrás
mjaow
223ad252df
Remove duplicate comment in WarmUpController ( #464 )
5 anos atrás
mjaow
30907e4c9d
Fix error value type and rename variable in EntranceNode class ( #457 )
5 anos atrás
Eric Zhao
ba4fdcc638
Fixes #453 : Support tracing exception count for specific entry or context in Tracer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Eric Zhao
8e72211db9
Add catch throwable logic in ClusterStateManager to detect fatal error when loading SPI
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Carpenter Lee
c45d64c619
Bug fix: fix 420, fix negative waitTime in RateLimiterController and WarmUpRateLimiterController
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
5 anos atrás
kexianjun
9697c06739
Fix incorrect comment in NodeSelectorSlot javadoc ( #419 )
5 anos atrás
kangyl
47148acc1e
Remove redundant semicolon in MetricWriter ( #412 )
5 anos atrás
Eric Zhao
d4d85dbc7c
Bump version to 1.4.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
Eric Zhao
225d81ed93
Bump version to 1.4.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
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>
5 anos atrás
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>
5 anos atrás
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>
5 anos atrás
Eric Zhao
8d84349607
Add returning modified status of `updateProperty` method in SentinelProperty
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
5 anos atrás
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 anos atrás
cdfive
44409182ae
Make the default statistic max RT value `TIME_DROP_VALVE` configurable ( #292 )
@see https://github.com/alibaba/Sentinel/issues/276
6 anos atrás
Zhe Jiang
197c982c02
doc: fix SphO document typo ( #357 )
6 anos atrás
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 anos atrás
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 anos atrás
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 anos atrás
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 anos atrás
leitao
e5cc277f0a
Remove duplicate class in sentinel-core ( #309 )
ClusterTokenClient.java,TokenClientProvider.java in package `com.alibaba.csp.sentinel.cluster`
6 anos atrás
Eric Zhao
9916dad403
Bump version to 1.4.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
Eric Zhao
c7b5653249
Bump version to 1.4.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
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 anos atrás
Eric Zhao
9314fca8a6
Add cluster state manager to manage cluster mode
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
Eric Zhao
ba72d4c67a
Rearrangement and refinement of statistic code in core
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
6 anos atrás
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 anos atrás
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 anos atrás