On Wed, May 29, 2013 at 9:25 AM, David Beneš <
dbe...@gmail.com> 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.