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

Sync with alibaba/master #5

Merged
merged 6 commits into from
Aug 12, 2020
Merged

Sync with alibaba/master #5

merged 6 commits into from
Aug 12, 2020

Conversation

Billzaifei
Copy link
Owner

@Billzaifei Billzaifei commented Aug 12, 2020

Describe what this PR does / why we need it

Sync with alibaba/master

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

sczyh30 and others added 6 commits July 30, 2020 19:00
…rove strategy

* Add `CircuitBreaker` abstraction (with half-open state) and add circuit breaker state change event observer support.
* Improve circuit breaking strategy (avg RT → slow request ratio) and make statistics of each rule dependent (to support arbitrary statistic interval).
* Add simple "trial" mechanism (aka. half-open).
* Refactor mechanism of metric recording and state change handling for circuit breakers: record RT and error when requests have completed (i.e. `onExit`, based on #1420).

Signed-off-by: Eric Zhao <[email protected]>
@Billzaifei Billzaifei merged commit b8144e9 into Billzaifei:master Aug 12, 2020
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.

3 participants