Search code examples
pm2

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?


Solution

  • 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/