Node.js – Cost of IPC
I ran a quick test to quantify the cost of IPC between workers and the master in a node.js cluster. The test code is below (which I borrowed from node’s docs).
On receiving an HTTP request, each worker process sends a message to the master. I ran three variations – no messages, send one message, and send 5 messages.
1. Don’t send a message.
2. Send one message per request
3. Send five messages per request
These are done on Ubuntu 11.04 on a quad-core Xeon box using node 0.6.12.
Previous post: My Gripes with Cloud Foundry
Next post: Protocols vs Styles
{ 12 comments… read them below or add one }
RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm
RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm
RT @jedisct1: Node.js – Cost of IPC: http://t.co/zrpbjQnm
Node.js – Cost of IPC http://t.co/taoiBSXh
Node.js – Cost of IPC http://t.co/XWs96acX #weblabor
Node.js – Cost of IPC http://t.co/nfBnDL6G
#yam RT @Outsideris Node.js – Cost of IPC http://t.co/AmSjTT4B
Node.js – Cost of IPC http://t.co/Rg4zf5lR
Node.js – Cost of IPC http://t.co/O70jz0lv
Cluster module is not so cheap http://t.co/uWp0ZGWrs5 #nodejs
Cluster module is not so cheap http://t.co/4J0gCT0mzP #nodejs http://t.co/4XntemNOPK
Cluster module is not so cheap http://t.co/4J0gCT0mzP #nodejs http://t.co/4XntemNOPK