No results for

Powered byAlgolia

Executors

Executors are the workhorses of the k6 execution engine. Each one schedules VUs and iterations differently, and you'll choose one depending on the type of traffic you want to model to test your services.

Possible values for executor are the executor name separated by hyphens.

VUs might not distribute uniformely over iterations

For any given scenario, you can't guarantee that a specific VU can run a specific iteration.

With SharedArray and execution context variables, you can map a specific VU to a specific value in your test data. So the tenth VU could use the tenth item in your array (or the sixth iteration to the sixth item).

But, you cannot reliably map, for example, the tenth VU to the tenth iteration.

NameValueDescription
Shared iterationsshared-iterationsA fixed amount of iterations are
"shared" between a number of VUs.
Per VU iterationsper-vu-iterationsEach VU executes an exact number of iterations.
Constant VUsconstant-vusA fixed number of VUs execute as many
iterations as possible for a specified amount of time.
Ramping VUsramping-vusA variable number of VUs execute as many
iterations as possible for a specified amount of time.
Constant Arrival Rateconstant-arrival-rateA fixed number of iterations are executed
in a specified period of time.
Ramping Arrival Rateramping-arrival-rateA variable number of iterations are
executed in a specified period of time.
Externally Controlledexternally-controlledControl and scale execution at runtime
via k6's REST API or the CLI.