Skip to content

Commit

Permalink
chore(pm2): Ensures that there are 2 instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Jan 9, 2018
1 parent 45fbc18 commit a5d50e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pm2/xapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
"output": "logs/xapi_stdout.log",
"error": "logs/xapi_stderr.log",
"pid": "pids/xapi.pid",
"instances": 1,
"instances": 2,
"exec_mode": "cluster",
"wait_ready": true,
"listen_timeout": 30000,
"watch": [".env"],
"max_memory_restart" : "500M"
"watch": [
".env"
],
"max_memory_restart": "500M"
}
]
}
}
2 changes: 1 addition & 1 deletion pm2/xapi.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"output": "{LOG_DIR}/xapi_stdout.log",
"error": "{LOG_DIR}/xapi_stderr.log",
"pid": "{PID_DIR}/xapi.pid",
"instances": 1,
"instances": 2,
"exec_mode": "cluster",
"wait_ready": true,
"listen_timeout": 30000,
Expand Down

0 comments on commit a5d50e6

Please sign in to comment.