My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
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!