cluster-master icon indicating copy to clipboard operation
cluster-master copied to clipboard

There doesn't appear to be a way to get a handle on the workers

Open crempp opened this issue 12 years ago • 1 comments

I am trying to get my hands on the forked workers but I can't seem to find a way. I've looked at the code and it appears that the workers are spawned and forgotten.

Is this correct? If so would it be possible to add handles and a method to access them?

I appologize if I'm missing something obvious, I'm new to node.js processes.

crempp avatar Dec 21 '13 04:12 crempp

it is not possible to access the worker processes itself as they do not share memory with the master. What you maybe can do is to start a repl on each worker on a different port and then expose functionality on cluster-master to connect to these. Otherwise you could connect manually to it cheers

thomasfr avatar Jun 18 '14 12:06 thomasfr