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.js when we spawn more processes than there are CPU cores on the machine ?