Jeremy, are you saying that 3 node processes on three dedicated machines is
faster than one node process on one beefy machine?

If you want to use all n cores on a machine you need n node processes on
that machine.  And yes, node is mostly single threaded.  Some things like
fs.* and zlib.* use a thread-pool so that they don't block the main thread,
but your js code will always run in the main thread.

On Fri, Apr 20, 2012 at 12:00 PM, Ryan Schmidt
<google-2...@ryandesign.com>wrote:

>
> On Apr 20, 2012, at 07:40, Jeremy Darling wrote:
>
> > Just curious what experiences others have had with hardware and hosting
> multi-process Node app stacks using MongoDB (or similar)?  So far my
> testing has shown that a cluster of smaller (3 - i5's with 8GB Ram and
> 120GB SSD's) machines out performs a single massive server (4x4 with 64GB
> Ram and 120GB NAS fiber attached storage).  This isn't too surprising
>
> It is to me.. why would that be the case?
>
> > since node basically allocates a single core per running process,
>
> What do you mean? I didn't think node "allocates" anything; I thought
> *you* allocate node processes by using cluster to start as many of them as
> is appropriate for the size of your server.
>
>
> --
> 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 nodejs@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>

-- 
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to