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

Add warm up + rate limiter flow control behavior and test cases #220

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

CarpenterLee
Copy link
Contributor

Describe what this PR does / why we need it

Now the are three kinds of FlowRule.controlBehavior, warm up and rate limiter are both provided, but there is no control behavior for warm up + rate limiter.

Does this pull request fix one issue?

Fixes #206

Describe how you did it

Add a new kind of FlowRule.controlBehavior warm up + rate limiter, behaving as both warm up and pace control. When use this control behavior, real passed qps will gradually increase to the threshold, other than burst increasing, and after the passed qps reaches the threshold, the request will pass at a constant interval.

Describe how to verify it

Run test cases and demo.

Special notes for reviews

None

@sczyh30 sczyh30 added the to-review To review label Nov 1, 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

@sczyh30 sczyh30 merged commit 08f2a71 into master Nov 1, 2018
@sczyh30 sczyh30 removed the to-review To review label Nov 1, 2018
@sczyh30 sczyh30 deleted the feature/warmup_queue branch November 2, 2018 03:11
sczyh30 pushed a commit that referenced this pull request Dec 25, 2018
)

- Add a new kind of control behavior `warm up + rate limiter`, behaving as both warm up and pace control

(cherry picked from commit 08f2a71)
Arlmls pushed a commit to Arlmls/Sentinel that referenced this pull request Jan 8, 2019
…libaba#220)

- Add a new kind of control behavior `warm up + rate limiter`, behaving as both warm up and pace control
CST11021 pushed a commit to CST11021/Sentinel that referenced this pull request Nov 3, 2021
[ROCKETMQ-332] MappedFileQueue#findMappedFileByOffset is not thread safe, which will cause message loss.
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.

[Feature] Add "warmup + rate limiter" implementation for traffic shaping
2 participants