diff --git a/server/server.js b/server/server.js index 3394a97..bc6c7d5 100644 --- a/server/server.js +++ b/server/server.js @@ -19,8 +19,7 @@ const {exec} = require('child_process'); // cluster mode const cluster = require('cluster'); const envWorkerNum = process.env.NODE_WORKER_COUNT; -const cpuCount = require('os').cpus().length; -const numWorkers = (envWorkerNum) ? envWorkerNum : cpuCount; +const numWorkers = (envWorkerNum) ? envWorkerNum : 2; // own modules const config = require('./config/config');