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

Dynamic Pacing / Rate? #689

Open
mgale opened this issue Jun 30, 2024 · 2 comments
Open

Dynamic Pacing / Rate? #689

mgale opened this issue Jun 30, 2024 · 2 comments

Comments

@mgale
Copy link

mgale commented Jun 30, 2024

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
Copy link
Author

mgale commented Jun 30, 2024

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

@mgale
Copy link
Author

mgale commented Jul 3, 2024

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

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

1 participant