Eric Zhao
21d436cae0
Fix pmd configuration in pom.xml
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 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
18cd27100a
dashboard: update frontend npm dependencies
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
ae774dba61
dashboard: update machine list page
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Jason Joo
78c0dd8f86
transport: netty-http revert the default port to 80 of console.server and add unit test ( #567 )
преди 5 години
Eric Zhao
1a482b1d9f
doc: Update README for new adapter modules
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 години
Carpenter Lee
3c52bbc3c8
dashboard: Add interface of authentication/authorization and provide a default stub implementation ( #503 )
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
Eric Zhao
4b1ccd93e2
Refactor Node interface: change return type of `xxxQps` method from long to double ( #564 )
- Update test cases (use assertEquals(e, a, delta) instead)
- Also add `totalPass` method in Node interface
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Carpenter Lee
63d7c9d207
Revert "Add more overload methods in SphO and SphO" to avoid ambiguous method call
This reverts commit 35371c1
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
Carpenter Lee
35371c1a3c
Add more overload methods in SphO and SphO
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
Eric Zhao
860e7eb16e
Update javadoc for CommandCenterProvider
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
efcd877714
Add integration test for SentinelWebFluxFilter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
0b8f1c5838
Add basic demo for Sentinel Spring WebFlux adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
d481014d8a
Add adapter module and implementation for Spring WebFlux
- The implementation leverages Sentinel Reactor Adapter. Two main components: SentinelWebFluxFilter and SentinelBlockExceptionHandler
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
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 години
Eric Zhao
4073053b3a
Update javadoc for core classes
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 години
Jason Joo
c7f3fd874c
dashboard: fix a request mapping issue of removing machines api ( #559 )
преди 5 години
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 години
Eric Zhao
e857b5cef7
Reactive: add Sentinel Reactor adapter module ( #545 )
* Add reactive adapter implementation for Project Reactor (Mono/Flux) including a reactor transformer and an experimental `ReactorSphU`
* Add an `InheritableBaseSubscriber` that derives from the original BaseSubscriber of reactor-core
* Add basic test cases for reactor adapter
* Add Sentinel context enter support for EntryConfig in reactor transformer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Carpenter Lee
b8e295a138
Convert negative paramIdx of ParamFlowRule in ParamFlowSlot
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
yikangfeng
9ec1985755
Fix SimpleDateFormat concurrent issue in CspFormatter of sentinel-core ( #548 )
преди 5 години
Carpenter Lee
5279895581
Add highestCpuUsage in system rule.
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
Carpenter Lee
b4422407ae
Update java version to 1.7 of sentinel-core
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
cdfive
33fc154d64
Fix Dubbo-related dependencies in sentinel-dubbo-demo ( #534 )
* Add spring-context-support 1.0.2 and netty-all 4.1.31.Final dependency, and remove spring-context 5.0.7.RELEASE dependency
* Add comment for dependency
преди 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
d05a603873
Update fastjson dependency version to 1.2.56
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
1ffce6b579
Fix test dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Jason Joo
5d3ccb0863
Solve the issue that sleeping-based tests are not stable and optimize slow tests ( #546 )
преди 5 години
Eric Zhao
226589f773
dashboard: update InMemoryMetricsRepositoryTest
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
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 години
Eric Zhao
b7956c6bb4
dashboard: code and document refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Jason Joo
737747a412
dashboard: support automatic/manual removal of unhealthy machines and disconnected applications ( #168 )
* Support removing unhealthy machine manually
* Auto removal support for dead machine
* Auto hidden for app if one have no healthy machine after some time(configurable)
* Auto removal for app if hidden status lasts(configurable).
преди 5 години
cdfive
61fede3827
Add a CommandCenterProvider to resolve and cache the CommandCenter instance ( #409 )
преди 5 години
hantianwei
b54461b058
dashboard: add Apollo flow rule publisher sample in Sentinel dashboard ( #535 )
преди 5 години
MickMo
3e4fc7a952
Remove G2 lib tracking in frontend of Sentinel dashboard ( #527 )
By upgrading G2 lib to version 3.4.10
преди 5 години
Eric Zhao
ed5ecd8580
Update command handler demo and code refinement
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 години
Eric Zhao
13de41ba6f
Update test cases in Sentinel dashboard
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
59c721691b
Improve demo for Sentinel cluster flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
094ba3bfba
Carry appName in FetchClusterServerInfo command
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
Eric Zhao
01533543ef
dashboard: improve management for foreign-app token server in cluster page
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
преди 5 години
qinggeng
ec0883d22e
Add AuthInfo parameter in the constructor of ZooKeeperDataSource to support ACL ( #508 )
преди 5 години
Carpenter Lee
5d2170282f
Add Sph.entryWithPriority() method to receive args
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
преди 5 години
nick.tan
b309dbe835
Fix concurrent error in InMemoryMetricsRepository of the dashboard ( #488 )
- fix ConcurrentModificationException of listResourcesOfApp method
преди 5 години
mjaow
291742c171
Change default value of avgUsedTokens to zero to be more meaningful in DefaultController ( #460 )
преди 5 години