Unitech / pm2

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

How to implement cross server application management in PM2 #5876

Open putty-kang opened 4 months ago

putty-kang commented 4 months ago

What's going wrong?

How could we reproduce this issue?

Supporting information

# Run the following commands
$ pm2 report
wastikansari commented 3 months 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 months 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: