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

Support degrade by exception count #174

Merged
merged 4 commits into from
Oct 11, 2018

Conversation

CarpenterLee
Copy link
Contributor

@CarpenterLee CarpenterLee commented Oct 11, 2018

Describe what this PR does / why we need it

DegradeRule only have two type now, one is by RT, the other is by exception ratio. Degrade by exception count is not supported, which is necessary in the real case.

Does this pull request fix one issue?

Fixes #173

Describe how you did it

Add a new DegradeRule type, degrade by exception count in the last minute. Degradation will be triggered if exception count in the last 60 seconds greats than or equals to the threshold.

Describe how to verify it

See test cases.

Special notes for reviews

None

@sczyh30 sczyh30 changed the title Feature/Degrade by exception count Support degrade by exception count Oct 11, 2018
@sczyh30 sczyh30 added the to-review To review label Oct 11, 2018
Copy link
Member

@sczyh30 sczyh30 left a comment

Choose a reason for hiding this comment

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

LGTM

@CarpenterLee CarpenterLee merged commit 9ae079c into master Oct 11, 2018
@sczyh30 sczyh30 removed the to-review To review label Oct 11, 2018
@sczyh30 sczyh30 deleted the feature/exception_count_degrade branch October 16, 2018 02:08
Arlmls pushed a commit to Arlmls/Sentinel that referenced this pull request Jan 8, 2019
* Add a new DegradeRule type, degrade by exception count in the last 60 seconds
* Add demo about degrading by exception count
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.

Degrade by exception count
2 participants