-
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
Feature request: generate test script from list of URL's #645
Comments
The arrival-rate executors in k6 v0.27.0 indeed are a better fit for something like this, but still not perfect. The arrival-rate executors usually require constant (or predictably increasing/decreasing) iteration (i.e. request) cadence, whereas log repeats might have no requests for a while, and then a ton of requests simultaneously. That said, the new executor architecture introduced in k6 v0.27.0 (#1007) allows us to relatively easily add new executor types. And, unless I am mistaken, now it can even be done with an xk6 extension, given that k6 has a clear |
I'm not sure if this warrants a new executor type or any type of specific support, built-in or otherwise. It would be fairly straightforward to load a JSON, CSV or even a newline-separated list of URLs and feed them to k6's |
@imiric, the new executor type would be more generic than this. We lack an executor you can use to "start new iterations at the pre-determined time offsets [t1, t2, ..., tn]". We don't need to give it a list of URLs and time offsets, just the time offsets, and maybe a repeat count (how many times the executor should cycle through the list of time offsets). It will essentially be a mix of the That's all we need on the executor side. We can have JS helpers that parse various log formats like nginx, Apache, or even HAR files (:exclamation:) and save the actual URLs and parameters into a Then we pass only a much smaller array with the time offsets as a parameter to this new executor. The scenario code can use #1320 (or #1539) to match the current scenario iteration number to the actual request details from the big And we can't use Still, instead of rushing forward with this, maybe a |
The team discussed this and agreed not to proceed with this feature. As a result, we are closing this issue. |
Basically, i wan't to load test based on a some Cloudfront logs i have. As i wan't to validate performance for randomly accessing different URL's work. There is already a converter for .har files, but also supporting either raw Cloudfront/Apache/nginx logs, or simply a text file with a list of URL's would be great.
I've been told that the current looping VU's might not be a good fit for this, but that Issue #550 tracks a better way to execute such "log replay" tests.
The text was updated successfully, but these errors were encountered: