Using Multiple Executors?

Hi @mercfh,

So it doesn’t specifically state anywhere that you CAN’T (at least that i’ve found). But im wondering if I can use multiple executors.

Do you mean using 2 executors for the same scenario? How exactly is that going to work?

If you mean having 2 scenarios with 2 differetn executors - that works fine. But I don’t think this is what you mean by that.

Im reading in 1000’s of unique guids in a CSV file just for context, so the iterations should equal the total number of guid’s.

Such as using the constant-arrival-rate executor as well?)

you can just use the constant-arrival-rate and do some (easy) math.

If you have a constant arrival rate starting 10 iterations a second and running for 7 second you will do 70 iterations(or at least start them).

if you want to do 1000 iterations and want to do 15 a minute that means that you have to run for 1000/15 minutes. If we move to seconds we will be starting iteration each 4 second (60seconds / 15 iterations). SO to start 1000 iteration we will need 4000 seconds.

export const options = {
  scenarios: {
    'shared-csv-iterations': {
      executor: 'constant-arrival-rate',
      preallocatedVUs: 20,
      rate: 1,
      duration: '4000s',
      timeUnit: "4s"
    },
  },
};

You might also need to up gracefulStop.

Hope this helps you!

1 Like