B
B
BestJS2016-10-16 03:50:41
Node.js
BestJS, 2016-10-16 03:50:41

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

2 answer(s)
A
Alexander Aksentiev, 2016-10-16
@BestJS

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.

S
Sasha Zaitsev, 2018-05-08
@zaycev-net

it all depends on ram

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question