Refactor PM2 ecosystem configuration: set restart delay to 0 and reduce timeout values

This commit is contained in:
Alex Newman
2025-10-27 00:52:40 -04:00
parent 90b209081c
commit d69a95bd29
2 changed files with 3 additions and 591 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ module.exports = {
max_memory_restart: '500M',
min_uptime: '10s',
max_restarts: 10,
restart_delay: 4000,
restart_delay: 0,
env: {
NODE_ENV: 'production',
@@ -45,8 +45,8 @@ module.exports = {
log_type: 'json',
// Process management
kill_timeout: 5000,
listen_timeout: 10000,
kill_timeout: 1000,
listen_timeout: 3000,
shutdown_with_message: true,
// PM2 Plus (optional monitoring)