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 ramp-up command #548

Open
cklm opened this issue Nov 8, 2020 · 3 comments
Open

add ramp-up command #548

cklm opened this issue Nov 8, 2020 · 3 comments

Comments

@cklm
Copy link

cklm commented Nov 8, 2020

Hi, thank you that you are investing your time for this great tool!

Proposal

vegeta should have an option to ramp up the rate at the start. Example: rate of 200 is given and rampup of 10 seconds is given - than vegeta increase the rate of 10% per second:
first second: 10% - rate=20
second second: 20% - rate=40
...
tenth second: 100% - rate=200

command could be as followed:

-rampup int
    seconds to ramp-up the target-rate

That option would allow to attack/test targets more naturally, since traffic (at least on our servers) does not increase that much from one second to the other.

Background

I just tested some webserver-configurations and optimized them. webservers cannot handle the traffic-jump (like 10 rq/s to 1,000rq/s in less than a second), because they need to spawn extra workers and so on. Without the rampup the report is falsified, since the webservers needs some seconds to scale.

Workarounds

I'm not aware of a workaround.

@surenderssm
Copy link

@cklm one workaround I can think of is to sequence test runs and aggregate the results.

  • 1 on the need of the feature.

@antoineco
Copy link
Contributor

I've been successful using the load-ramping script with tweaked values for this https://github.com/tsenart/vegeta/tree/master/scripts/load-ramping.

I also wrote a RampPacer that does something similar to what you describe if you're interested in looking into the code, but it is used as a lib and not as a vegeta command.

@kazimir-malevich
Copy link

A ramp up and down would be useful in any load test tool.

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

No branches or pull requests

4 participants