-
Notifications
You must be signed in to change notification settings - Fork 114
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
--ratelimit and --ratelimit-window flags #295
Conversation
@fatpat Could you explain why this is needed? It seems contrary to the idea of benchmarks - even if it is only in preparation. |
benchmark is not necessarily to push as hard as possible, it sometimes can target a fix rate to check how a cluster is handling at a specific rate instead of observing how it handles at the limits. In our case we need to reproduce as close as possible in a stage environment what we observe from a production environment. We need to handle multiple account and target a global specific rate. We plan to use warp (1 instance per account) with different mix bench parameter and with different ratelimit. |
@fatpat Fair point. I will check it out ASAP. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL
0bec138
to
941c7f5
Compare
@fatpat I think a per worker rate limit is too hard to control. I would like it to be per warp instance. |
done |
d4940a9
to
52a9bc5
Compare
@fatpat Awesome! Thanks! I will review Monday if time permits! |
when set, rate limit operations during the prepare and the main phase of the bench. The ratelimit applies globally to all concurrent worker of each warp instance.
Please approve this PR, i had to build a fork from @fatpat repository to use this feature. first test in this example - 5 IO limit per warp client (i have two) i made more tests - with 0, 100, 10 - all goes fine. |
when set, ratelimit operations during the prepare phase and the bench to a global ratelimit threshold to each worker