Our experience has shown that 2 processes per core thread (IE: On an i7 you
get 8 core threads on 4 cores due to hyperthreading) balances quite well.
 This isn't to say that your experience won't differ.  We have all of our
code broke into logical families and utilize Hook.io as a message bus
between.  Scaling has been as simple as spinning up a new machine into the
mesh.

We are running on VM's with 4 cores, 8 GB Ram, and 50GB DAS currently and
besides a few minor issues with resource slice time have been unable to
saturate our current 4 machine mesh.  Each stack has MongoDB and Node
installed with all families copied with some only being spun up on a
machine or two (background processes that don't tax the mesh, basically
dedicated processing boxes).

 - Jeremy

On Wed, May 16, 2012 at 7:28 PM, Isaac Schlueter <[email protected]> wrote:

> Chances are that the workers are going to be spending the most time on
> CPU.  If you have a few too many, it's not super bad.
>
> I'd try going with the same number of workers as you have CPUs.
>
> On Wed, May 16, 2012 at 4:33 PM, Qi Fan <[email protected]> wrote:
> > Hi,
> >
> > On an 8-core computer, is it better to run 8 node.js processes, or is it
> > better to run fewer?
> >
> > I'm speculating that if both the event loops and system IO are busy then
> 8/8
> > configuration may freeze at a lower load than 7/8 configuration since
> each
> > IO operations will suspend nodejs processes.
> >
> > --
> > 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 [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to