On Wed, May 29, 2013 at 9:25 AM, David Beneš <[email protected]> wrote: > Have you found your answer? I asked the same questions to google and end up > here...
For context, the question is how to make a cluster worker stop accepting connections until the master tells it it's okay again. The cluster module doesn't support that: it's designed to be easy to use, not to be configurable to death. All the infrastructure is in place however. The child_process module (which is what the cluster module sits on top of) lets you send and receive handles and messages. You can roll your own cluster module that behaves any way you like, you just have to sit down and write the code. :-) In this particular case, you probably want to have the master process accept new connections, then send it to a worker of your choosing. -- -- 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.
