-
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
Specifying both duration and iterations is deprecated and won't be supported in the future k6 versions #1058
Comments
@arswaroop, that warning may be a bit premature and unnecessary, but it was added in k6 because we plan to make some major improvements (and, unfortunately, some breaking changes) to the way k6 execution and scheduling of VUs work. You can find more details in the following WIP pull request, but in short, in the k6 version following the next one, the execution will be a lot more flexible and feature-rich. The basic idea is that the current The breaking changes stem from the way k6 currently supports multiple different conflicting options. It is somewhat buggy and so those warnings were added in k6 v0.24.0 to prepare users for the breaking changes. For example, it makes no sense to specify both But I think I was actually overzealous in removing support for simultaneously using the export let options = {
execution: {
default: {
type: "shared-iterations",
vus: 5,
iterations: 10,
maxDuration: "20s",
}
}
}; I'll remove this specific warning as part of #1057 (so it gets released with k6 v0.25.0 in the next week or so), and I'll make the change to #1007 as well, so it gets in the actual new executors. |
This would just produce a shared-iterations scheduler with the specified number of iterations and a maxDuration equal to the passed duration, similar to how it works in the current k6 execution. This should fix #1058.
This would just produce a shared-iterations scheduler with the specified number of iterations and a maxDuration equal to the passed duration, similar to how it works in the current k6 execution. This should fix #1058.
This would just produce a shared-iterations scheduler with the specified number of iterations and a maxDuration equal to the passed duration, similar to how it works in the current k6 execution. This should fix #1058.
Hello,
I am getting such warnings if i put arguments for iterations, users or duration. Can i know what will it be in future iterations, I didn't find any docs about this change on the website.
The text was updated successfully, but these errors were encountered: