On Thu, Dec 19, 2013 at 11:50 AM, Bijuv V <[email protected]> wrote:
> Thanks Alex.
>
> So the options finally are -
>
> a. Use Cluster - used in many prod applications as mentioned by Luke

Yeah, ignore the experimental, it means node is allowed to changes its
API, if they need to.

It's API is a bit low-level, you need to do some stuff to make it
useful, see (b)!

> b. Use PM2 module - similar to cluster I believe

pm2 is a wrapper around cluster, as are:

ql-io/cluster2 (ebay)
godaddy/cluster-service
strongloop/strong-cluster-control

They all just add functionality that many people have found useful on
top of node's built-in cluster. YMMV, check them out.

You asked why share state in a cluster... lots of reasons! MySQL...?

In large production, you probably will use something like Redis to
distribute state among workers. In a small single-machine cluster, or
while doing development or in CI, maybe you don't want to depend on
external servers. Or maybe you do, your choice.

If you don't, the set of "store" modules Shubra mentioned can be used
to distribute connect session state, socket.io sessions, etc. through
a node cluster without using external servers.

> c. Use Phusion Passenger - Not quite sure why would I go with such a
> heavyweight ? (IMO - just by reading thru their website)

nginx is pretty high performance... I don't if heavy weight is fair.

> d. Use VM's
> e. Use physical LB's
>
> What would be the drawback of using a Cluster compared to a Dyno or VM? I
> understand about the restarts of the cluster

And speaking of heavy-weight solutions... here  come the VMs!  ;-)

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to