You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run my nodejs app with pm2 in cluster mode. The app works fine with: CMD ["pm2", "start", "yarn start", "--no-daemon"] start 1 instance in fork_mode
But with: CMD ["pm2", "start", "yarn start", "-i", "10", "--no-daemon"] 10 instances are started, yet still in fork_mode and I get errors regarding ports being already in use. How to force cluster mode? Is there an argument I'm missing?
The text was updated successfully, but these errors were encountered:
Trying to run my nodejs app with pm2 in cluster mode. The app works fine with:
CMD ["pm2", "start", "yarn start", "--no-daemon"]
start 1 instance in fork_modeBut with:
CMD ["pm2", "start", "yarn start", "-i", "10", "--no-daemon"]
10 instances are started, yet still in fork_mode and I get errors regarding ports being already in use. How to force cluster mode? Is there an argument I'm missing?The text was updated successfully, but these errors were encountered: