We host about 150 websites (possibly scaled to 300+), which we plan to transfer to node.js Most sites have fairly low traffic and page views per month.
Should each website be its own node.js process, or should we serve all websites using the same node.js process (or a small set of load-balanced processes). Is there a technical limit or a reasonable limit on the number of node processes per server?
Process on the site: Feels ineffective, but I do not know if it is really ineffective. Ensure that one buggy site does not affect other sites.
Kernel process / small set of processes: Probably high performance, but what happens when I need to update the code base of sites, will it not be deleted on other sites? In addition, code errors on one site affect other sites.
Ideally, I would prefer one process per site so that we can host all sites from each production server. Thus, with an increase in load, we can simply deploy another identical working server and balance the load between them without having to arbitrarily say that SiteA goes to ServerA, and SiteB goes to ServerB. Any node.js gurus available to offer some wisdom?
All static file requests will probably be handled by Nginx or something like Varnish.
source share