Allow limiting the number of concurrent TestRuns (maybe even per "target" or "SUT") #439
Labels
enhancement
New feature or request
evaluation needed
meta
Related to high-level configuration of k6-operator.
Feature Description
Currently the operator works on all TestRun resources and moves them through the state machine
It might make sense to allow restricting the number of concurrent TestRuns to avoid interference of individual runs.
This might be due to noisy neighbors issue on the K8 cluster / infrastructure running the K6 pods but more importantly in cases where the same system under test (SUT) is targeted by multiple TestRuns.
Suggested Solution (optional)
TestRunStatus
withpending
orqueued
to indicate back to the user that the TestRun is waiting for others to finish.So to extend on the limitation of concurrent TestRuns it would also be beneficial to allow to set a limit per "SUT". Either by extending the TestRun CR with a field to indicate which target will be hit or by an annotation. Yes, the real world is always more complex, so there might be even more rules that some environments would like followed.
But by allowing the k6-operator to work through a list (~ queue) of TestRuns one by one per SUT seems to cover the 90%-use-case of avoiding interference of tests (towards the same target)
Already existing or connected issues / PRs (optional)
No response
The text was updated successfully, but these errors were encountered: