Calculate the parallelism based on required VUs #280
Labels
enhancement
New feature or request
evaluation needed
meta
Related to high-level configuration of k6-operator.
Feature Description
Hello
We are integrating K6 operator for our load tests, and we have noticed that we have to define the parallelism as part of CR directly. In our use case, the SRE/Platform team has created all the required stuff for development teams, who only have to trigger a process.
This means that development teams just need to specify the test case + config file and the trigger starts. For us, development teams shouldn't have to know about the underlying infrastructure because it's something managed by SRE team, but currently they need to know it because they have to set the parallelism.
Our problem is that the same team can trigger multiple test with different VUs (depending on test case and config.json) but teams have to set both, the VUs for the tests and the parallelism. If SRE team (who knows about the infrastructure) could define the runner capabilities, keeping only the definition of required capabilities to dev teams, it'd be awesome.
It would be nice if we can transfer these responsibilities, abstracting this configuration somehow. I have some ideas for this:
I think that the second option could be the more complex but maybe it's also the more flexible for the future. The only point where I have doubts is in how to get the test VUs because maybe it's hidden for the operator. I mean, maybe the initializer pod (who has access to the test and config even if it's provided by localfiles or pvc) could expose this info somehow, giving to the operator the required info for starting the test instances.
I can't promise it (because next weeks will be complicated), but I'd be willing to contribute with this if you think it's useful
The text was updated successfully, but these errors were encountered: