Chris Paterson
unread,Jan 24, 2012, 3:03:17 PM1/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nodejs
Hello, I'm looking for a way to run an app 'clusterized' without
having the app aware that it's being run in a cluster. Is this
possible? I've been trying a few things with no avail... first I
tried creating a script that uses node.js cluster and simply sucks in
the app that you point to via commanline arguments. When it spins
through and forks, the worker process just spins up the server. It
seems though that this creates a port conflict, I'm not sure why.
Well actually I'm not sure if it's a port conflict, I keep getting
'cannot read property 'port' of null'. My next course of action was
to create a module that you require in the app that essentially does
the same thing to see if there was a difference. That didn't work,
then to copy and paste the code directly in the app and it still
doesn't work. The app I'm using is an express server. It'll run the
first worker, then the subsequent workers die because they can't find
the "port of null". Any help would be greatly appreciated!