You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/markdown/translated-guides/en/02 Using k6/14 Scenarios/01 Executors.md
+19-5
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,28 @@
1
1
---
2
2
title: 'Executors'
3
-
excerpt: 'Executors are the workhorses of the k6 execution engine. Each one schedules VUs and iterations differently, and you choose one depending on the type of traffic you want to model to test your services'
3
+
excerpt: 'Executors control how k6 schedules VUs and iterations. Choose the executor to model traffic you want to model to test your services'
4
4
---
5
5
6
-
**Executors** are the workhorses of the k6 execution engine. Each one
7
-
schedules VUs and iterations differently, and you'll choose one depending on the type of traffic you
8
-
want to model to test your services.
6
+
**Executors** control how k6 schedules VUs and iterations.
7
+
The executor that you choose depends on the goals of your test and the type of traffic you want to model.
9
8
9
+
Define the executor in `executor` key of the scenario object.
10
10
Possible values for `executor` are the executor name separated by hyphens.
11
11
12
+
13
+
```javascript
14
+
exportconstoptions= {
15
+
scenarios: {
16
+
arbitrary_scenario_name: {
17
+
//Name of executor
18
+
executor:'ramping-vus',
19
+
// more configuration here
20
+
},
21
+
},
22
+
};
23
+
```
24
+
25
+
12
26
<Blockquotemod="note"title="VUs might not distribute uniformely over iterations">
13
27
14
28
For any given scenario, you can't guarantee that a specific VU can run a specific iteration.
@@ -24,7 +38,7 @@ But, you _cannot_ reliably map, for example, the tenth VU to the tenth iteration
|[Shared iterations](/using-k6/scenarios/executors/shared-iterations)|`shared-iterations`| A fixed amount of iterations are<br/> "shared" between a number of VUs. |
41
+
|[Shared iterations](/using-k6/scenarios/executors/shared-iterations)|`shared-iterations`| A fixed amount of iterations are<br/> shared between a number of VUs. |
28
42
|[Per VU iterations](/using-k6/scenarios/executors/per-vu-iterations)|`per-vu-iterations`| Each VU executes an exact number of iterations. |
29
43
|[Constant VUs](/using-k6/scenarios/executors/constant-vus)|`constant-vus`| A fixed number of VUs execute as many<br/> iterations as possible for a specified amount of time. |
30
44
|[Ramping VUs](/using-k6/scenarios/executors/ramping-vus)|`ramping-vus`| A variable number of VUs execute as many<br/> iterations as possible for a specified amount of time. |
0 commit comments