On Sat, Nov 16, 2013 at 3:38 PM, Evan <[email protected]> wrote: > I was heavily influenced by Unicorn's design and signal patterns when I > implemented actionHero's cluster > module<https://github.com/evantahler/actionHero/blob/master/bin/methods/startCluster.js>. > At it's heart is is just a wrapper around `cluster` with some signal > handling. The trickier part was actually building my application to be > comfortable in transitional states. For example, if the TCP/TLS server was > signaled to shut down, it needs to ignore all incoming new connections and > send a 'goodbye' message to all existing ones. It's nothing overly > complicated, but it's a little more to keep in mind when developing, > assuming your goal is 0-downtime deployments. >
But the cluster module handles this via worker.disconnect(). Zero downtime updates are just a matter of spawning a new set of children and telling your current ones to .disconnect(). -- -- 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.
