ballenwen
f6dff5a859
Fix typo in the README.md of sentinel-annotation-aspectj ( #1136 )
пре 5 година
format
6cf0945b86
Upgrade nacos-client to 1.1.4 in sentinel-datasource-nacos module ( #1129 )
пре 5 година
Neptune
b1c8c43bbe
Upgrade Apollo client version to 1.5.0 in sentinel-datasource-apollo module ( #1098 )
пре 5 година
Eric Zhao
94026399bf
Improve code and document of sentinel-datasource-etcd module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Lin.Liang
aeae6cfe37
Add Etcd data-source extension ( #1018 )
пре 5 година
Neptune
582f32c35b
Update Apollo client dependency to 1.4.0 in sentinel-datasource-apollo module ( #1061 )
пре 5 година
tao.zhang
77932701b6
Add volatile for the stop flag of watcher in ConsulDataSource ( #1054 )
пре 5 година
huangxfchn
4916ec35ee
Improve annotation aspect to support throwing original exception in fallback and blockHandler ( #986 )
- extract the original exception from InvocationTargetException
пре 5 година
Eric Zhao
976ddf8c48
Refine the document and javadoc for Spring Cloud Config data-source module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Lin.Liang
30158bcac0
Add Spring Cloud Config data source extension ( #899 )
пре 5 година
Eric Zhao
2682bd1aae
Improve ConsulDataSource and add README.md for the module
- Change the unit of waitTimeout from ms to s (the previous implementation lay suffer the bug that ms/1000=0 when ms<=1000)
- Improve the error handling when parsing the value
- Add README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
tao.zhang
ec30e897dc
Add Consul DataSource integration module ( #979 )
пре 5 година
0704681032
ebcf89024c
Remove duplicate "exceptionBelongsTo" check in SentinelResourceAspect ( #964 )
пре 5 година
Lin.Liang
ba146765e3
Reuse connections of the same address in ZooKeeper data-source ( #788 )
* Fix the problem that too many connections (zkClient) are established
пре 5 година
Eric Zhao
58a83b42aa
Update ZooKeeper client in data-source module to 3.4.14 to fix vulnerability
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
d59beaec66
Fix the bug that numeric overflow might occur when refilling tokens in ParamFlowChecker ( #838 )
- use AtomicLong to replace AtomicInteger
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
f8ebbbccf4
Bump version to 1.7.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
3d2c33ef1d
Bump version to 1.6.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
77dec5f845
Separate parameter metric storage from ParamFlowSlot and improve ParamFlowRuleUtil
- Add a ParameterMetricStorage specific for caching ParameterMetric (moved from ParamSlot)
- Add rule map building helper method in ParamFlowRuleUtil so that we can reuse it in other rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
346e9b274e
Bump version to 1.6.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
b1345f751f
Bump version to 1.6.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
82578e1fdf
Refactor and improve fallback support for @SentinelResource annotation ( #693 )
- Refactor the semantics and logic for blockHandler and fallback
- Add `fallbackClass` support for fallback in global classes
- Add `defaultFallback` support
- Update test cases and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
5f713bd404
Update toString() method of ParamFlowRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
e9719d32ec
Refactor flow algorithm for parameter flow control and support more traffic shaping mode ( #677 )
* support burst count, statistic interval per rule and throttling mode.
* Add fields in ParamFlowRule to support burst count, throttle, statistic interval per rule.
* Deprecate HotParamLeapArray and use token bucket algorithm directly.
пре 5 година
yikangfeng
08611fae0f
Add exceptionsToIgnore configuration support in @SentinelResource annotation ( #683 )
пре 5 година
Eric Zhao
df27e3ef9d
Code refactor and refinement for FileInJarReadableDataSource
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
nick.ding
882a06007d
Add FileInJarReadableDataSource to support reading config file in jar ( #646 )
пре 5 година
Eric Zhao
29f22e370b
Fix the NPE bug when passing null args to SphU.entry() and paramIdx is negative ( #642 )
- Also rearrangement of some code
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
0c3bf96678
Bump version to 1.6.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
48286e0ff8
Bump version to 1.5.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
53a4e16144
Fix bug for completing entry with parameters in SentinelResourceAspect
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
zhousiliang163
12c67d4770
Improve ZookeeperDataSource to deal with bad connection when initializing ( #597 )
пре 5 година
Eric Zhao
61c525076f
Improve SentinelResourceAspect and update test cases / document of annotation support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
beston123
6e1dfb374c
Add exceptionsToTrace configuration support in @SentinelResource annotation ( #543 )
пре 5 година
Eric Zhao
f60394c651
Add test cases for sentinel-annotation-aspectj ( #581 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
lawrence wu
9051a6be96
Improve field naming in ApolloDataSource ( #593 )
пре 5 година
Bo Zhang
a3369378ad
Apply Alibaba p3c pmd plugin/rules and fix/ignore all violations of priority 1 ( #574 )
пре 5 година
Eric Zhao
0d4c47b23e
Bump version to 1.5.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
053f7172a3
Bump version to 1.5.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
1741da0bab
Automatically de-duplicate rules when loading rules ( #571 )
* De-duplicate rules automatically when loading rules
* Update rule managers
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
044cdbb1bf
Add occupy mechanism for future buckets of sliding window to support "prioritized requests final pass" ( #568 )
* Rename: MetricsLeapArray -> BucketLeapArray
* Add implementation for `FutureBucketLeapArray`, a kind of `BucketLeapArray` that only reserves for future buckets, which is used for calculating occupied future tokens.
* Add OccupiableBucketLeapArray that combines common BucketLeapArray with FutureBucketLeapArray. The rollingNumberInSecond in StatisticNode now uses OccupiableBucketLeapArray by default.
* Add OccupySupport interface. Node now implements OccupySupport interface.
* Add occupy-related methods in Metric and ArrayMetric.
* Handle prioritized requests in default traffic shaping controller.
* Update default occupyTimeout to 500ms
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Neptune
7367da6936
Upgrade apollo-client to 1.3.0 and add support for removing listener in sentinel-datasource-apollo ( #562 )
- Add to unsubscribe config change event
пре 5 година
Carpenter Lee
b8e295a138
Convert negative paramIdx of ParamFlowRule in ParamFlowSlot
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
пре 5 година
Carpenter Lee
80797ae85e
Allow negative paramIndex as reversed-order in ParamFlowRule ( #549 )
* Allow negative paramIndex in ParamFlowRule
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
пре 5 година
Eric Zhao
1ffce6b579
Fix test dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
逅弈
59d923ebc1
Add an ApiCommandHandler to list all available commands and description ( #491 )
* Add a ApiCommandHandler which fetch all registered CommandHandlers so that user can get all available CommandHandlers by request /api
* Add a customized CommandHandler demo
пре 5 година
qinggeng
ec0883d22e
Add AuthInfo parameter in the constructor of ZooKeeperDataSource to support ACL ( #508 )
пре 5 година
Eric Zhao
5b260a9f75
Bump version to 1.5.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
2e0fe23384
Bump version to 1.4.2 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година
Eric Zhao
020a63fdb5
Bug fix: NPE when adding event count in ParamMapBucket ( #494 )
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
пре 5 година