Revert "Harden API process under production load"

This reverts commit 817f416b79.
This commit is contained in:
Ben
2026-06-08 00:17:15 -04:00
parent b612b50f3e
commit 17ba4afc1a
6 changed files with 6 additions and 105 deletions
-15
View File
@@ -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',