is that right? Now lets say I have node application with 4 API endpoint now I want to add new endpoints to existing application. So do that we can do pm2 reload app-name instead of pm2 restart is that correct? How can I make sure my application is updated with new endpoints with zero down time?
did you test it
zero downtime requires replicas running in cluster mode
https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html
Node app version1 included 4 APIs initially now my new version of app has 2 additional endpoints how to make sure this gets deployed without any downtime? For this pm2 reload works
But for adding new code changes we need to restart the server right? Thats why pm2 comes in to picture
This was original question
https://stackoverflow.com/help/how-to-ask
Обсуждают сегодня