From 4ec75c2c1da0aff8371ac5da84877c1d7f010b55 Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 30 Jul 2026 19:03:28 +0200 Subject: [PATCH] feat(pm2): add ecosystem config for cluster mode (6 instances, 512MB) --- ecosystem.config.cjs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ecosystem.config.cjs diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 00000000..7e8a838e --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,22 @@ +module.exports = { + apps: [ + { + name: "next", + script: "pnpm", + args: "start", + exec_mode: "cluster", + instances: 0, + max_memory_restart: "512M", + env: { + NODE_ENV: "production", + PORT: 3002, + RCON_PORT: 3003, + NEXT_PHASE: "phase-production-server", + }, + merge_logs: true, + error_file: ".pm2/errors.log", + out_file: ".pm2/out.log", + log_date_format: "YYYY-MM-DD HH:mm:ss", + }, + ], +};