The socket is stuck in HTTP long-polling with over 100 concurrent connections #4475
-
Hello!
nginx.conf:
revers-proxy config
Report is
During this test I watch whats going on in Admin UI and I see (in "Namespaces" block) that after ~100 concurrent connection, next connections is stucked in long polling and not able to connect as websocket. At the "top" in instance I see that node uses maximum 6% of cpu (2 core) and 2-4% of RAM (4GB total + 4GB as swap). At my local PC it works good, even with arrival rate 55 I get ~1300 concurrent connection which stay at websocket transport. Also tried this script and after ~150 concurrent sockets I get "disconnect due to ping timeout" message. Can you help me please what I did wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi! Please check the documentation here: https://socket.io/docs/v4/performance-tuning/#at-the-os-level |
Beta Was this translation helpful? Give feedback.
Hi! Please check the documentation here: https://socket.io/docs/v4/performance-tuning/#at-the-os-level