pm2 is a cluster master process. You can write a master yourself, or you can use it instead, it is essentially just one option.
If you like to have another option, I'd name different ports and nginx as a load balancer between them. It was what we were doing before cluster was released, and I believe it's still viable. Besides, nginx is good for serving static files, so people are using it even with cluster anyway.
Passenger, strong control, etc. are too heavy and vendor-locking-looking for my taste. VMs like LXC are awesome, but I think they add big overhead as well. I never used physical LB's, so can't say anything.
19.12.2013, 23:50, "Bijuv V" <[email protected]>:
--What would be the drawback of using a Cluster compared to a Dyno or VM? I understand about the restarts of the clustere. Use physical LB'sd. Use VM'sc. Use Phusion Passenger - Not quite sure why would I go with such a heavyweight ? (IMO - just by reading thru their website)b. Use PM2 module - similar to cluster I believea. Use Cluster - used in many prod applications as mentioned by LukeThanks Alex.So the options finally are -
On Thu, Dec 19, 2013 at 7:53 PM, Alex Kocharin <[email protected]> wrote:I can't say for sure what he meant there, since year 2010 was like ages ago, and a lot of stuff happened.But it's probably about passing file descriptors from master server to a child process. Only one process can listen on a port at any given time, so master does it. But once it accepts a connection, it sends file descriptor (everything is a file, remember?) to a child process which reads data and answers on it directly.Communication between node instances is probably just a sign of overengineering.19.12.2013, 22:41, "Bijuv V" <[email protected]>:Thanks for sharing your views . Do you know what Ryan means by Server File Descriptors?Also , about Strongloop, you mentioned about communication between the node instances - why would this be necessary - cant figure out a use case .On Thu, Dec 19, 2013 at 6:28 PM, Luke Arduini <[email protected]> wrote:The "experimental" stability index means almost nothing. It's fine. Plenty of people use it in production.
On Thursday, December 19, 2013, Matt wrote:You received this message because you are subscribed to the Google Groups "nodejs" group.On Thu, Dec 19, 2013 at 11:50 AM, Bijuv V <[email protected]> wrote:a. Use Cluster feature of node. Everything is handled by node. Still experimental AFAIK.
I think while cluster is still marked experimental, it's built on top of child_process which is marked as Stable.Most people go with cluster. It works well and is extremely reliable in my experience. As long as you're aware of the gotchas with graceful restarts.Matt.--
--
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
---
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.--
--
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 a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/Dv5J7w34rcQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.--
--
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.--
--
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 a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/Dv5J7w34rcQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.--
--
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.
--
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.
