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,
  },
}
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.

Further reading

Problem with a question

Load Testing · Middle · question 4

Test yourself

Take the Load Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz