You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
master 32266 alive
worker 0 32252 dead
worker 1 32253 dead
worker 2 32254 dead
worker 3 32255 dead
worker 4 32256 dead
worker 5 32257 dead
worker 6 32258 dead
worker 7 32259 dead
If I comment out the second .in() it works as expected.
var path = require('path');
var cluster = require('cluster');
cluster(require('http').createServer())
.use(cluster.pidfiles())
.use(cluster.cli())
.in('development').listen(3000)
//.in('staging').listen(3020)
similar to #149, but i realize I'm still experiencing the issue that is most critical
~/code/cluster_test node server status
master 32251 alive
worker 0 32252 alive
worker 1 32253 alive
worker 2 32254 alive
worker 3 32255 alive
worker 4 32256 alive
worker 5 32257 alive
worker 6 32258 alive
worker 7 32259 alive
~/code/cluster_test node server restart
~/code/cluster_test node server status
master 32266 alive
worker 0 32252 dead
worker 1 32253 dead
worker 2 32254 dead
worker 3 32255 dead
worker 4 32256 dead
worker 5 32257 dead
worker 6 32258 dead
worker 7 32259 dead
If I comment out the second .in() it works as expected.
~/code/cluster_test node server status
master 32297 alive
worker 0 32298 alive
worker 1 32299 alive
worker 2 32300 alive
worker 3 32301 alive
worker 4 32302 alive
worker 5 32303 alive
worker 6 32304 alive
worker 7 32305 alive
[02:10 PM] josh@nyl2060n
~/code/cluster_test node server restart
[02:10 PM] josh@nyl2060n
~/code/cluster_test node server status
master 32331 alive
worker 0 32332 alive
worker 1 32333 alive
worker 2 32334 alive
worker 3 32335 alive
worker 4 32336 alive
worker 5 32337 alive
worker 6 32338 alive
worker 7 32339 alive
I am unable to discover why this is. I know that process.kill() doesn't throw an error.
I added some code to tap into all the events master emits:
here is working start/restart sequence:
start
worker
worker
worker
worker
worker
worker
worker
worker
listening
$ node server restart
restarting
start
worker
worker
worker
worker
worker
worker
worker
worker
listening
closing
kill
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
close
restart
here is failing start/restart sequence:
start
worker
worker
worker
worker
worker
worker
worker
worker
listening
$ node server restart
restarting
start
listening
closing
kill
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
worker killed
close
restart
The text was updated successfully, but these errors were encountered: