Skip to content

Commit 3d3a5c3

Browse files
authored
feat: update pm2 prod config
1 parent 4c4e7e1 commit 3d3a5c3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

ecosystem.config.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ module.exports = {
33
{
44
name: "project-canis",
55
script: "dist/index.js",
6-
instances: 3,
7-
exec_mode: "cluster",
8-
sticky: true,
9-
node_args: "--max-old-space-size=1024",
6+
instances: 1,
7+
exec_mode: "fork",
8+
node_args: "--max-old-space-size=2048",
109
env: {
1110
NODE_ENV: "production",
1211
},
13-
max_memory_restart: "512M",
12+
max_memory_restart: "2560M",
1413
watch: false,
1514
autorestart: true,
1615
},

0 commit comments

Comments
 (0)