Avery235
Avery235

Reputation: 5326

pm2 watch + Cluster Mode reload or restart?

If I'm on Cluster Mode with --watch, when a file is updated, will pm2 automatically restart the app, or reload (0 downtime) the app?

Upvotes: 2

Views: 694

Answers (1)

fadomire
fadomire

Reputation: 1975

It will restart the app

No 0 downtime reload

From the doc :

Note : Watching system does not provide any graceful action, pm2 kills and restarts your application without sending SIGINT

http://pm2.keymetrics.io/docs/usage/watch-and-restart/

Upvotes: 3

Related Questions