Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.33k stars 2.61k forks source link

How to implement cross server application management in PM2 #5876

Open putty-kang opened 1 month ago

putty-kang commented 1 month ago

What's going wrong?

How could we reproduce this issue?

Supporting information

# Run the following commands
$ pm2 report
wastikansari commented 3 weeks ago

Implementing cross-server application management with PM2 can be done using PM2's ecosystem file and the PM2-plus (previously PM2 Enterprise) features.

wastikansari commented 3 weeks ago

Here's a simple guide to setting it up:

  1. Install PM2 on All Servers:
  2. Setup a PM2 Ecosystem File:
  3. Deploy Application to Multiple Servers:
  4. Monitor Applications Across Servers:
  5. Perform Rolling Restarts:
  6. Automate Deployments with SSH Keys: