Hello! Could you help me with configuring a scenario for K6 options? I believe that ramping-arrival-rate
might meet the requirements I describe below, but I’m unsure if it would be the best solution.
I need to prepare a scenario where, initially, 50 (fifty) iterations are executed simultaneously. Every minute, a new round should be executed, increasing the number of iterations by 50, until reaching a maximum of 500 (five hundred) iterations.
With each new round, I cannot interrupt the processes from the previous round. It will be a gradual increase, and I need to wait for the results of all the iterations. I have prepared the scenario below. Would this be the best configuration for this case?
export const options = {
discardResponseBodies: true,
scenarios: {
contacts: {
executor: 'ramping-arrival-rate',
startRate: 0,
timeUnit: '1m',
preAllocatedVUs: 50,
gracefulStop: '25m',
stages: [
{ target: 50, duration: '1m' },
{ target: 100, duration: '1m' },
{ target: 150, duration: '1m' },
{ target: 200, duration: '1m' },
{ target: 250, duration: '1m' },
{ target: 300, duration: '1m' },
{ target: 350, duration: '1m' },
{ target: 400, duration: '1m' },
{ target: 450, duration: '1m' },
{ target: 500, duration: '20m' },
],
},
},
};