-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
K6 scale not works with stage #1028
Comments
Hi @zefelise, I also should mention that #1007 will change this in a way such that k6 will require you to say that you want to set your vus manually through the API. This (for the moment) will also not let you have stages and other ways to run vus. |
Hi @mstoykov , |
The "correct" way to use the rest API to scale up and down is to run k6 as
After this you should use the API to call the setup function and set the data it returns you through the API, through the API to be the setup data for the tests. And after that you can run scale up and unpause the script. At the end you should scaledown and run teardown, if you have teardown and setup of course :). All of this is done so that you can actually control what happening instead of k6 to start executing the stages that are defined in the script or running with it defaults(1vu 1 iterations) when you unpause the script. The setup/teardown thing is mostly because of teardown. As you see the whole experience is not ideal and definitely contra intuitive in a lot of places which is why it is somewhat redesigned in #1007 and will hopefully be at least less confusing ;) |
Thanks @mstoykov . This makes sense. |
I am going to leave this open and close with #1007 |
If I run the script with stage option defined, like:
I can not change the vus during the execution with
k6 scale
cmd.Every time I change the vus with
k6 scale
the actual vus will be changed back the one defined in the stage targets soon.Is this by design or an issue? It's useful that I can trigger a script with pre-defined stages while sometimes try to change the vus in ad-hoc.
The text was updated successfully, but these errors were encountered: