mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
Enable the cluster back but reduce it to one worker.
This commit is contained in:
committed by
Alexander.Trofimov
parent
0301593d64
commit
58b577becd
@ -6,7 +6,7 @@ const config = configCommon.get('services.CoAuthoring');
|
||||
|
||||
const logger = require('./../../Common/sources/logger');
|
||||
|
||||
/*if (cluster.isMaster) {
|
||||
if (cluster.isMaster) {
|
||||
const numCPUs = require('os').cpus().length;
|
||||
const license = require('./../../Common/sources/license');
|
||||
|
||||
@ -57,7 +57,7 @@ const logger = require('./../../Common/sources/logger');
|
||||
|
||||
fs.watchFile(configCommon.get('license').get('license_file'), updateLicense);
|
||||
setInterval(updateLicense, 86400000);
|
||||
} else {*/
|
||||
} else {
|
||||
const express = require('express');
|
||||
const http = require('http');
|
||||
const urlModule = require('url');
|
||||
@ -176,7 +176,7 @@ const logger = require('./../../Common/sources/logger');
|
||||
}
|
||||
docsCoServer.setLicenseInfo(msg.data);
|
||||
});
|
||||
//}
|
||||
}
|
||||
|
||||
process.on('uncaughtException', (err) => {
|
||||
logger.error((new Date).toUTCString() + ' uncaughtException:', err.message);
|
||||
|
||||
Reference in New Issue
Block a user