On Jun 7, 2013, at 19:10, Isaac Schlueter wrote: > I do this with the npmjs.org site using the cluster-master module. > > https://npmjs.org/package/cluster-master
Thanks, I'm sure I've heard of that before, and will remember to look into it once I get to the point of deploying. > I only have to restart the main process if there's a change to the > main server.js file. Otherwise, I log into the repl, and I can > restart workers one by one, resize the cluster, etc. I guess I don't understand how this is accomplished. What repl are you talking about? Is this something custom you've written for the npmjs web site or is this easily available to anyone's nodejs site using the standard repl that appears when you run "node"? Could you point me to an example? > Getting all the edge cases handled properly is very app-specific, and > in multi-machine setups, it will be completely extraneous. > > So, unlike Ben, I would reject a pull request flat-out for this > feature, unless someone could present a *very* compelling case for why > everyone ought to have the same logic in all their apps. I don't > believe that this belongs in core. Regardless of whether you run a single node process on a single server or several processes on several servers, most everyone will eventually want to deploy an updated version of the code and restart the server, and I don't think it's controversial to claim that doing so gracefully, without losing any connections, is best. Why, then, should each developer need to figure out anew how to do that, especially when as you say it's difficult to get right? -- -- 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.
