Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valid circuit-breaker filter spec by correlation #551

Merged
merged 3 commits into from
Mar 29, 2022

Conversation

sodaRyCN
Copy link
Contributor

The circuit breaker filter should valid spec according to the parameter correlation: using the strategy of failure statistics, it should ensure that the relevant required parameters have been set(failureRateThreshold,failureStatusCodes). At this time, the relevant parameters of the slow call are not required, and vice versa.

@sodaRyCN sodaRyCN closed this Mar 28, 2022
@sodaRyCN sodaRyCN reopened this Mar 28, 2022
@samutamm
Copy link
Contributor

Thanks for fixing this ^^

Copy link
Contributor

@samutamm samutamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov-commenter
Copy link

Codecov Report

Merging #551 (9d8870e) into main (69d0500) will decrease coverage by 0.06%.
The diff coverage is 82.35%.

@@            Coverage Diff             @@
##             main     #551      +/-   ##
==========================================
- Coverage   78.58%   78.51%   -0.07%     
==========================================
  Files          94       94              
  Lines       10862    10878      +16     
==========================================
+ Hits         8536     8541       +5     
- Misses       1842     1850       +8     
- Partials      484      487       +3     
Impacted Files Coverage Δ
pkg/filter/circuitbreaker/circuitbreaker.go 91.39% <82.35%> (-0.96%) ⬇️
pkg/object/websocketserver/proxy.go 77.83% <0.00%> (-1.04%) ⬇️
pkg/cluster/cluster.go 52.11% <0.00%> (-0.95%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 69d0500...9d8870e. Read the comment docs.

@localvar localvar merged commit 0cd6b15 into easegress-io:main Mar 29, 2022
localvar pushed a commit that referenced this pull request Mar 29, 2022
* valid circuit-breaker filter spec by correlation

* fix  circuit-breaker filter failure legality validate

* fix error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants