forked from svrjs/svrjs
Removed 16 CPU cores cap
This commit is contained in:
parent
2eedf125a8
commit
fc03b485ef
1 changed files with 0 additions and 2 deletions
2
svr.js
2
svr.js
|
@ -5476,7 +5476,6 @@ function start(init) {
|
|||
SVRJSInitialized = false;
|
||||
closedMaster = true;
|
||||
var cpus = os.availableParallelism ? os.availableParallelism() : os.cpus().length;
|
||||
if (cpus > 16) cpus = 16;
|
||||
try {
|
||||
var useAvailableCores = Math.round((os.freemem()) / 50000000) - 1; // 1 core deleted for safety...
|
||||
if (cpus > useAvailableCores) cpus = useAvailableCores;
|
||||
|
@ -5547,7 +5546,6 @@ function start(init) {
|
|||
// Cluster forking code
|
||||
if (cluster.isPrimary !== undefined && init) {
|
||||
var cpus = os.availableParallelism ? os.availableParallelism() : os.cpus().length;
|
||||
if (cpus > 16) cpus = 16;
|
||||
try {
|
||||
var useAvailableCores = Math.round((os.freemem()) / 50000000) - 1; // 1 core deleted for safety...
|
||||
if (cpus > useAvailableCores) cpus = useAvailableCores;
|
||||
|
|
Reference in a new issue