isaacs / cluster-master

Take advantage of node built-in cluster module behavior
ISC License
276 stars 44 forks source link

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

Open crempp opened 10 years ago

crempp commented 10 years ago

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.

thomasfr commented 10 years ago

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