mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 03:22:14 +00:00
chore(cluster): max 2-core
This commit is contained in:
parent
e404f35705
commit
00c8a7f757
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue