Hi.

Has anybody had any experiance with scaling this over multiple node servers and how did they do it?

Or could anybody report back as to how many users they've managed to run on a single instance and what specs the server had.

Comments

beardedgeek created an issue. See original summary.

dabbor’s picture

Good question. I would like to know the answer myself.

dabbor’s picture

Title: scale to mutiple servers » scale to multiple servers
bbeellkk’s picture

If you would like to load balance requests between multiple servers, you can use a web proxy like nginx or haproxy.
Proxy will receive requests and pass them to one nodejs app from the list. Priorities and handling type (one by one, random, least used) should be configured in settings of the proxy.

Additionally, using a web proxy will allow to use existing SSL, while nodejs server can use a self-signed one, so you will not need to install cert to multiple servers.

However, I suspect it can be needed only when a single server cannot serve your users.

marji’s picture

I'm afraid the common design bbeellkk described would not work in this case as the app has no cluster support.

The drupal module, talking to the proxy / load balancer, would notify only *one* nodejs server behind the proxy / load balancer.
This is a problem, because you need *all* the nodejs servers behind the proxy / load balancer to get updated, not only one.

You might want to also look to this issue for a bit of related info: https://www.drupal.org/node/1673144

Anonymous’s picture

Version: 7.x-1.13 » 8.x-1.x-dev
Component: Miscellaneous » Code
Category: Support request » Feature request

moving to the 8x. queue.

happy to review patches and discuss designs for this. it will require a bunch of changes over in the node.js code on github.