-
Notifications
You must be signed in to change notification settings - Fork 172
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
Design and implement a config for distributed execution setup #95
Comments
A similar proposal was recently described here: #240 (comment) A few additional thoughts. While it's possible to implement such an addition, it'd also add quite a bit of complexity into k6-operator with little new additional value. I.e. the logic for distribution is part of k6 but IIRC, that code is not meant to be used by external parties so the logic will have to be partially duplicated, hacked, etc. From UX perspective, in k6 Cloud the Last but not least, in context of grafana/k6#140, it's likely there will appear another way to approach this issue in k6 altogether. |
In order to implement this, wouldn't the main changes be to https://github.com/grafana/k6-operator/blob/main/pkg/segmentation/segmentation.go ? I don't understand what logic you were talking about needing to hack? grafana/k6#140 sounds great, but this would surely affect more about the operator than just this issue right? |
@evanfpearson sorry for the delay but here are the clarifications on the above 😅
Here I meant the lower-level code in k6 itself, i.e. https://github.com/grafana/k6/tree/master/lib
Yes, absolutely. There will be some changes in k6-operator but I hope we'll be able to keep them to the minimum, i.e. without impacting the core logic of controllers. |
Currently k6-operator supports only the simplest straight-forward distributed setup when 100% of execution is spread in equal chunks
100% / N
toN
runners. But k6 is far more versatile which is fully utilized by k6 Cloud indistribution
parameter. It would be good to include this versatility into k6-operator as well.Setup of k6-operator already allows passing all necessary options; the main caveat is in how best to configure distribution. Sample options to consider:
N
fraction numbersN
percentages1/60
load and 10 runners with1/20
load:No matter what config option is chosen, validation will be needed for:
a) the format of
distribution
is sufficient, e.g. exactlyN
numbersb) final distribution adds up to 1
The text was updated successfully, but these errors were encountered: