mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
Revert "Harden API process under production load"
This reverts commit 817f416b79.
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
const apiNodeArgs = (process.env.API_NODE_ARGS || '--max-old-space-size=512')
|
||||
.split(/\s+/)
|
||||
.filter(arg => arg.length > 0);
|
||||
const apiMaxMemoryRestart = process.env.API_MAX_MEMORY_RESTART || '768M';
|
||||
const apiKillTimeout = parseInt(process.env.API_KILL_TIMEOUT_MS || '5000', 10);
|
||||
const apiRestartDelay = parseInt(process.env.API_RESTART_DELAY_MS || '2000', 10);
|
||||
|
||||
module.exports = {
|
||||
apps: [
|
||||
// API instance
|
||||
@@ -13,14 +6,6 @@ module.exports = {
|
||||
script: './dist/main.js',
|
||||
instances: 1,
|
||||
exec_mode: 'fork',
|
||||
node_args: apiNodeArgs,
|
||||
max_memory_restart: apiMaxMemoryRestart,
|
||||
kill_timeout: apiKillTimeout,
|
||||
restart_delay: apiRestartDelay,
|
||||
min_uptime: '10s',
|
||||
max_restarts: 10,
|
||||
pmx: false,
|
||||
vizion: false,
|
||||
env: {
|
||||
MASTER: 'false',
|
||||
API_ONLY: 'true',
|
||||
|
||||
Reference in New Issue
Block a user