Friday, 28 April 2017

how many workers in a nodejs relatively to cpu cores

When working with child_process or cluster, is it best to have as many subprocess as cpu cores, or should we subtract one to that number, as the master process is already sitting on one of them ?

Expanding on this question, how are things handled by node when we spawn more processes than there are cpu cores on the machine ?



via mlarcher

No comments:

Post a Comment