chore(cluster): max 2-core

This commit is contained in:
Tyler Renelle 2014-02-07 14:18:04 -07:00
parent e404f35705
commit 00c8a7f757

View file

@ -10,7 +10,7 @@ var isDev = nconf.get('NODE_ENV') === 'development';
if (cluster.isMaster && (isDev || isProd)) {
// Fork workers.
_.times(require('os').cpus().length, function(){
_.times(_.min([require('os').cpus().length,2]), function(){
cluster.fork();
});