Sign in
Log inSign up
How to reload a Node.js server without downtime using PM2?

How to reload a Node.js server without downtime using PM2?

James Howard's photo
James Howard
·Dec 22, 2015

I am using PM2 to manage my Node servers. When I say pm2 restart 0, it restarts my app, but I get 5-10 seconds of downtime. How can I implement a zero down time deployment or at least minimise this downtime?

Also what's the difference between pm2 reload and pm2 restart?

Thanks folks!

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct