Load Testing · Middle · Question 4 of 76
What load does this scenario generate?
scenarios: {
api: {
executor: 'constant-arrival-rate',
rate: 200,
timeUnit: '1s',
duration: '10m',
preAllocatedVUs: 50,
maxVUs: 300,
},
}- 1200 VUs for 10 minutes, each doing one iteration per second
- 2200 iterations per second for 10 minutes, using up to 300 VUs
- 350 VUs that together do 200 iterations in total over 10 minutes
Show the answer
Correct answer: 200 iterations per second for 10 minutes, using up to 300 VUs
Explanation
rate / timeUnit sets iterations started per second. k6 starts with 50 VUs and can add up to 300 if iterations take longer and more VUs are needed to keep the rate.