-
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
Have parameter to abort if test doesn't reach target iterations per second #2837
Comments
k6 already emits a Something like a scenario With a metric like The solution that makes the most sense to me is to improve their capabilities (#2379, #1136) and UX (#1313, #1441 or something like PromQL support), not to add extra options to arrival-rate scenarios 🤔 |
You know, I knew that I see that it would be possible to set a counter to Despite what I wrote, I'm okay with just closing this issue if it seems too finicky or simple to implement. Footnotes
|
Both of these things can be connected. When the remote service/website gets overloaded and starts responding more slowly, requests will take longer to execute, so k6 iterations will also take longer to run. When they take longer, even if we have a constant number of newly started iterations every second (i.e. Any time that an executor was supposed to execute an iteration but couldn't, it will emit a For For example, if the scenario specifies that k6 should start a new iteration every 1ms, and that VU init takes 5ms, if the scenario runs out of free VUs (and none free up from previous iterations), then k6 will emit ~5 Anyway, in summary,
Yeah, this is a problem. Though the limitations of the thresholds are the biggest problem in my mind 🤔 If users could specify something like "abort the test if the number of |
For future readers who want to follow the flow of information, a lot the info from this last post made its way into the docs via: grafana/k6-docs#974 |
Feature Description
In the arrival rate executors, the test continues even if k6 can't reach the target iteration rate. If the duration property is long, the test will go on for a while, using resources to do something that that tester doesn't want to test for anyway.
This is especially true if the testing set up is automated. I can imagine a situation where a commit to the SUT causes the median iteration of the test to increase, which in term means that the preAllocated number of VUs is no longer sufficient.
Sorry if this has been discussed― I couldn't find anything about it. Or, maybe this just doesn't make sense from a testing standpoint. Anyway, at least this issue will create a chance to document the reason why it doesn't make sense.
Suggested Solution (optional)
Have an extra property called something like
abortWhenTooFewVUS
orabortOnInsufficientAllocation
. Already k6 provides a warning, so I guess the only thing to do would be to send abort with a non-zero exit code if that property is set to true.Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered: