increase max process cutoff
parent
6cb36c4548
commit
20702c598a
|
|
@ -13,7 +13,7 @@ const debug = Debug(`${DEBUG_NAMESPACE}:www:${process.pid}`);
|
||||||
// INITIALIZE THE DATABASE
|
// INITIALIZE THE DATABASE
|
||||||
await initializeDatabase();
|
await initializeDatabase();
|
||||||
const directoryName = path.dirname(fileURLToPath(import.meta.url));
|
const directoryName = path.dirname(fileURLToPath(import.meta.url));
|
||||||
const processCount = Math.min(getConfigProperty('application.maximumProcesses'), os.cpus().length);
|
const processCount = Math.min(getConfigProperty('application.maximumProcesses'), os.cpus().length * 2);
|
||||||
const applicationName = getConfigProperty('application.applicationName');
|
const applicationName = getConfigProperty('application.applicationName');
|
||||||
process.title = `${applicationName} (Primary)`;
|
process.title = `${applicationName} (Primary)`;
|
||||||
debug(`Primary pid: ${process.pid}`);
|
debug(`Primary pid: ${process.pid}`);
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ const directoryName = path.dirname(fileURLToPath(import.meta.url))
|
||||||
|
|
||||||
const processCount = Math.min(
|
const processCount = Math.min(
|
||||||
getConfigProperty('application.maximumProcesses'),
|
getConfigProperty('application.maximumProcesses'),
|
||||||
os.cpus().length
|
os.cpus().length * 2
|
||||||
)
|
)
|
||||||
|
|
||||||
const applicationName = getConfigProperty('application.applicationName')
|
const applicationName = getConfigProperty('application.applicationName')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue