Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 cluster mode uses max cpus #8929

Merged
merged 2 commits into from
Sep 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dotcom-rendering/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ start: install

# Used in cloudformation.yml which specifically:
# - Launches pm2 from /usr/local/node rather than /node_modules
# - Does not run 'install' task as its not needed & adds time to startup
start-prod:
$(call log, "starting PROD server...")
@echo '' # just a spacer
NODE_ENV=production /usr/local/node/pm2 start dist/server.js
NODE_ENV=production /usr/local/node/pm2 start dist/server.js -i max
@echo '' # just a spacer
$(call log, "PROD server is running")

Expand Down