Answer the question
In order to leave comments, you need to log in
How to increase the number of Socket.IO connections?
At the moment I use the machine:
2 processor cores
2 GB of RAM
60 GB of hard disk
I use Socket.IO as a wrapper over websocket connections
When I ran node js in one thread, the maximum websocket connections were 3-4t
With a larger volume, the node crashes ...
Now I'm starting in two threads, maybe two cores using a cluster https://habrahabr.ru/post/208914/
In general, nothing has changed since now there are up to 2t socket connections per thread.
Again, with a larger volume, everything falls ...
What needs to be done to increase the number of possible socket.io connections, so to speak, up to 10t.
What to change? In which direction to drip?
Answer the question
In order to leave comments, you need to log in
With a larger volume, the node falls ...
Maybe start by reading the error and finding out why it crashes, and not just trying to cut something from the bulldozer?
Maybe you have a maximum of 4k ports on the server, but you are digging in the wrong place at all.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question