I have a test with lot of socket connections (50K) and I intensionally want to keep the socket connection because my systeam broadcast messages and I need to test the load of that broadcast over 50k connected “users”… The problem is that not clossing the connection, the result is:
running (5m30.9s), 00000/50000 VUs, 0 complete and 50000 interrupted iterations
I tried with teardown but I couldn’t close the sockets from there…
This is my scenario:
scenario_50000_5_mins_users: {
executor: "constant-arrival-rate",
rate: 167,
timeUnit: "1s",
duration: "5m",
preAllocatedVUs: 50000,
maxVUs: 50000,
gracefulStop: "30s",
},
and clossing the socket on message works fine:
socket.on("message", (message) => {
let json_message = JSON.parse(message);
if (json_message[3] === "phx_reply") {
checkSocketResponse(json_message);
}
console.log(socket);
socket.close();
});
1 post - 1 participant