Mass reconnect test

Greetings!

First of all, thanks a lot for such utility for load testing!

If there is any easy way to implement test like this?
N-clients connect to the server, after all of them connect successfully do massive disconnect and simultaneously reconnect.

I tryed this:

export let options = {
    scenarios: {
        default: {
            executor: 'ramping-vus',
            gracefulStop: '0s',
            //stages: createStages(STAGE_DURATION, CLIENTS_PER_STAGE, TOTAL_CLIENTS, FINAL_STAGE_DURATION),
            stages: [
                { duration: '1s', target: TOTAL_CLIENTS },
                { duration: '10s', target: TOTAL_CLIENTS },
                { duration: '1s', target: 0 },
                { duration: '5s', target: 0 },
                { duration: '1s', target: TOTAL_CLIENTS },
                { duration: '10s', target: TOTAL_CLIENTS },
            ]
        }
    }
};

But number of VUs is not reduced.

Hi there,

consider using the gracefulRampDown option for this.

By default it’s set to 30s, so k6 will wait up to 30s for any iterations in progress to complete before stopping the VUs during a ramp down. If you want to forcibly stop iterations in progress you can set this to gracefulRampDown: '0s'.

1 Like