Carpenter Lee
b5b3f6edee
Bug fix: fix probability of metric lose
2018-09-16 21:13:06 +08:00
Eric Zhao
b1f33675c5
Improvements for Redis data source and demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-14 15:02:55 +08:00
moon tiger
4ff2e37abb
Add DataSource integration for Redis ( #102 )
...
- This implementation uses Lettuce as the internal client, and leverages Redis pub-sub feature to implement push mode data source. (by @tigerMoon)
2018-09-14 14:08:50 +08:00
Eric Zhao
5edac71fef
Add support for asynchronous invocation entry ( #146 )
...
- Add several `asyncEntry` method in `Sph` interface and `SphU` class.
- Add a new `AsyncEntry` class for asynchronous entry representation. Some refactor for `CtEntry`.
- Refactored `CtSph` and implement `asyncEntryInternal` for asynchronous entry.
- Add `runOnContext` and `replaceContext` method in `ContextUtil` for context switching.
2018-09-14 10:07:27 +08:00
Eric Zhao
54905497d0
Refactor LeapArray to reuse code for current bucket
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-12 19:17:25 +08:00
Eric Zhao
2a3e33590f
Update test cases and demo for async support
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-12 18:53:24 +08:00
Eric Zhao
ca2f4d9fae
Support extensible slot chain builder using SPI mechanism ( #145 )
...
- Support extensible `SlotChainBuilder` using SPI mechanism
- Add a `SlotChainProvider` to load slot chain builder and create new slot chains
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-12 13:53:43 +08:00
Eric Zhao
d798794ab3
Refactor the context and entry to support asynchronous invocation chain
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-12 11:46:21 +08:00
Eric Zhao
d142a07a39
Enhance log and null check for rule managers
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-10 15:44:42 +08:00
Eric Zhao
02cf5e5639
Add MetricsRepository interface and reuse original in-memory implementation ( #126 )
...
- Abstract a universal `MetricsRepository` interface so that users can implement their own metrics persistence.
- Reuse original in-memory implementation (`InMemoryMetricsRepository`) as the default repository.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-06 18:59:31 +08:00
Eric Zhao
ed30f85f9c
Fixes #128 : Fix early return when exception ratio is 100%
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-05 19:03:27 +08:00
Eric Zhao
50a5610010
Enhance file data source and flow rule manager
...
- Some refinement for file data source
- Add resource name checking in FlowRuleManager to avoid NPE
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-05 15:45:52 +08:00
yfh0918
175452a96a
Enhance FileRefreshableDataSource and FileWritableDataSource ( #125 )
...
- Add method to check if the resource is modified in `AutoRefreshDataSource`
- Implement FileWritableDataSource
2018-09-05 12:36:46 +08:00
Eric Zhao
9a27f395e6
Some structure refactor for Sentinel Dashboard
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 19:09:19 +08:00
Eric Zhao
007cd9d291
Some refactor of data source
...
- Add `close` method in WritableDataSource (to extend AutoCloseable in JDK 1.7 later)
- Separate the writable file data source from original class
- Add a sample to show how to register data sources via Sentinel init mechanism
- Separate a writable data source registry from original handler to make it clear
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao
f3eb285445
Update demo of various data source to adapt to new changes
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao
c70d6e92bc
Update command handler for modifying rules
...
- Refine code about writable datasource
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Eric Zhao
0060e8042a
Refactor Sentinel data source hierarchy
...
- Spilt DataSource into two types: ReadableDataSource and WritableDataSource
- The AbstractDataSource now is read-only
- Refactor the file data source for writable implementation
- Rename: ConfigParser -> Converter (represents both encoder `T -> S` and decoder `S -> T`)
- Some other refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-04 11:09:42 +08:00
Carpenter Lee
6799da270d
Fixed #109 : fix miss-usage of ClusterNode.successQps() in DegradeRule.passCheck() method
2018-09-03 11:54:59 +08:00
Eric Zhao
f70ab5ab05
Fixes #117 : Update document of Sentinel Dashboard
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-09-03 09:33:03 +08:00
Eric Zhao
9164bb19fe
Fix the bug when resolving original method to get annotation ( #111 )
...
- The method from the signature will return the method of interface, so we need to resolve declared method in target class
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-31 11:10:41 +08:00
refactormachine
b61be268a3
Refactor test cases for Sentinel gRPC Adapter ( #101 )
...
- Added a GrpcTestServer to abstract common server logic
- Refactor with new added `GrpcTestServer`
2018-08-30 23:57:23 +08:00
Shalti
2772f189ab
Fixed CR comments
2018-08-29 21:19:16 +08:00
Shalti
dc0a7086b5
Renamed to MetricsReader
2018-08-29 21:19:16 +08:00
Shalti
ac8698ed9f
Refactored some classes
2018-08-29 21:19:16 +08:00
Carpenter Lee
d716f0f14a
Fixes #99 , fix miss comparison of FlowRule.maxQueueingTimeMs
2018-08-29 17:48:04 +08:00
子矜
cedd420336
jialianglinjl
2018-08-29 15:33:33 +08:00
kimmking
f8a72c4931
update README to add coverage icon
...
update README to add coverage icon
2018-08-24 12:48:35 +08:00
Eric Zhao
f6484514ff
Add benchmark for Sentinel
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-17 11:44:15 +08:00
Eric Zhao
23f65b9fee
Update dependencies and add log
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-17 11:17:24 +08:00
Eric Zhao
94aea568f6
Miscellaneous update
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-15 15:33:29 +08:00
Eric Zhao
49097fa45c
Resolves #61 : Enhance exception trace in Sentinel Dubbo Adapter
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-15 15:16:33 +08:00
Eric Zhao
820160d542
Fix update logic of minRt in bucket
...
- Fix incorrect usage. It's not thread-safe when comparing and updating `minRt`, but it's okay since the actual minimum RT often matches free load.
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-14 20:23:42 +08:00
Eric Zhao
6392cb0336
Modify loading mechanism of authority rules: only pick first
...
- Comment/javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-13 14:42:33 +08:00
Eric Zhao
4226868dcf
Fix typo in rule constants and add authority rule demo
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-13 11:22:03 +08:00
Eric Zhao
b76ad9b480
Fix url for Maven Central Badge
...
Related to #57
2018-08-12 13:29:10 +08:00
Eric Zhao
b42a930a83
Update documents
...
- Add Maven Central badge
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-09 15:42:11 +08:00
Eric Zhao
227776a301
Fixes #52 : Error file separator regex in Windows environment
...
- This bug can cause init failure of `AppNameUtil`
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-09 15:16:11 +08:00
Carpenter Lee
430ef8a99a
Fixes #51 , use js type–converting comparisons.
2018-08-09 10:10:03 +08:00
Eric Zhao
b212e5f26e
Bump version to 0.2.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 20:45:25 +08:00
Eric Zhao
6bef9a8ee1
Bump version to 0.1.1
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 19:57:37 +08:00
Eric Zhao
a65d16083d
Optimize for statistic data structures ( #47 )
...
* Optimize for leap array
- Fix a bug: old position is not cleaned when inserting into a new (empty) position
- Reuse buckets for optimization
- The strategy is now changed: deprecated buckets will not be reset until newer time triggered. LeapArray is responsible for filtering the deprecated buckets (e.g. in `list` or `values`)
- Update test cases
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 19:36:42 +08:00
Jason Song
b51c3ad13e
Add Apollo data source extension ( #46 )
2018-08-08 18:53:13 +08:00
Eric Zhao
73b0979542
Remove sentinel-spring-boot-starter module
...
- This has been replaced with Spring Cloud Alibaba
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 17:19:16 +08:00
Eric Zhao
008b82078d
Fix pom.xml error of sentinel-transport
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 17:19:16 +08:00
Carpenter Lee
40514587ac
Set SystemRule's threshold to zero is allowed.
2018-08-08 14:33:13 +08:00
Eric Zhao
b1cf30fc24
Add support for shared block handler
...
- Update javadoc and document
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
d0970d5ef7
Add demo for Sentinel Annotation AspectJ with Spring AOP
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
348b1c819b
Add Sentinel annotation definition and aspectj extension
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:40:38 +08:00
Eric Zhao
b37c237a61
Add default fallback support for Dubbo
...
- Update test cases and demo
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-08-08 10:09:13 +08:00