|Cluster: Process.send stops working||zaphod1984||6/11/12 4:12 AM|
I'm using process.send() to send messages from a worker to the master
process. (statistics data)
When the cluster is under heavy load (5000-7000req/s) process.send
stops to work after a while e.g. no messages are arriving on the
I used this very simple example: https://gist.github.com/2909389
In the beginning the server works as expected (see the attached
comment), than it doesn't anymore.
I have no idea what could cause this behaviour, it seems like these
messages simply get lost somewhere.
Any suggestions on that?
|Re: [nodejs] Cluster: Process.send stops working||Ben Noordhuis||6/11/12 6:12 AM|
Seems to work for me. On what platform and with what version of node
are you seeing this?
|Re: [nodejs] Cluster: Process.send stops working||zaphod1984||6/11/12 6:45 AM|
I'm on windows 7 x64, with the current node version (0.6.19)....
is there any chance that this behaviour differs in a linux environment?
|Re: [nodejs] Cluster: Process.send stops working||Ben Noordhuis||6/11/12 6:56 AM|
On Mon, Jun 11, 2012 at 3:45 PM, zaphod1984 <mnl...@googlemail.com> wrote:Yes, probably. Can you file an issue?
|Re: [nodejs] Cluster: Process.send stops working||stagas||6/11/12 1:55 PM|
I can confirm this, there seems to be a hard limit here
On a linux system (CentOS tested) it seems that the write queue is
flushed faster, so it doesn't hit the limit easily, but on Windows it
does and .send() returns false.
Listening to 'drain' on stdin is useless, as the above limit comes
before the stdin throughput limit.
I think the hard limit should be removed and the regular stream
features should be proxied to the process (return false on .write,
continue on 'drain') so we can manage the throughput properly.
2012/6/11 Ben Noordhuis <in...@bnoordhuis.nl>:
> Job Board: http://jobs.nodejs.org/
> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> For more options, visit this group at
|Re: [nodejs] Cluster: Process.send stops working||zaphod1984||6/11/12 11:47 PM|
Thanks for your comment, I have filed an issue!