250k connections for comet with node.js

Posted by Nenad on Server Fault See other posts from Server Fault or by Nenad
Published on 2011-11-29T16:36:16Z Indexed on 2011/11/29 17:52 UTC
Read the original article Hit count: 212

Filed under:
|
|
|
|

How to implement node.js to be able to handle 250k connections as comet server (client side we use socket.io)?

Would the use of nginx as proxy/loadbalancer be the right solution? Or will HA-Proxy be the better way? Has anyone real world experience with 100k+ connections and can share his setup? Would a setup like this be the right one (Quad core CPU per server -> start 4 Instances of node.js per Server?):

  nginx (as proxy / load balancing server)
        /               |          \
       /                |           \
      /                 |            \
     /                  |             \
node server #1  node server #2  node server #3
4 instances     4 instances     4 instances

© Server Fault or respective owner

Related posts about nginx

Related posts about haproxy