K6 is use to getting abnormal closure when I run web socket load tests

Hi everyone, I’m running a K6 WebSocket load test and I’m experiencing an issue when running the test from my local machine. When I run the script with more than 1000 virtual users, I frequently start receiving WebSocket error code 1006. In many cases, the disconnections seem to be related to ping timeouts, which occur after the connections have been successfully established for several seconds.

However, when I run the same script inside the Kubernetes cluster where the backend is deployed, the test runs successfully with around 4000 virtual users.

The issue on my local machine causes the clients to disconnect in a cascading pattern over time, rather than all at once.

Does anyone have experience with this kind of behavior or suggestions on what may be causing the cascading disconnects?

Thank you in advance.