tsenart / vegeta

HTTP load testing tool and library. It's over 9000!
http://godoc.org/github.com/tsenart/vegeta/lib
MIT License
23.64k stars 1.37k forks source link

Dynamic Pacing / Rate? #689

Open mgale opened 4 months ago

mgale commented 4 months ago

Question

Hello,

Is it possible to adjust the rate while vegeta is running currently?

For example I would like to start with: cat requests.txt | ./vegeta attack -rate 1/s | tee /tmp/results.bin | ./vegeta report --every 1s

Then check my metrics, warm cache, etc and then slowly increase the rate over time, potentially until my application starts to fail and then lower the rate again until stability returns.

If the current CLI does not support this is it possible using vegeta as a lib and implementing a custom Pacer?

Thank you.

mgale commented 4 months ago

Maybe it would make more sense to adjust the -max-workers?

mgale commented 4 months ago

Example for my use-case: https://github.com/tsenart/vegeta/pull/690/files