1
0
Fork 0
forked from svrjs/svrjs

Disabled killing workers, when server is closed.

This commit is contained in:
Dorian Niemiec 2023-08-09 21:58:21 +02:00
parent 68a42ccde8
commit 6515a54471

2
svr.js
View file

@ -5198,6 +5198,7 @@ function start(init) {
if(cluster.isMaster !== undefined) {
setTimeout(function () {
setInterval(function () {
if (!closedMaster && !exiting) {
var allClusters = Object.keys(cluster.workers);
var minClusters = Math.ceil(cpus / 2);
if(minClusters < 2) minClusters = 2;
@ -5253,6 +5254,7 @@ function start(init) {
}
}
});
}
}, 120000);
}, 2500);
}