Is there a way to do an elegant pm2 restart for all nodejs processes? I'm looking for something like Apache's elegant restart . Want to avoid killing server execution for each code deployment.
pm2 restart kills and restarts the process.
pm2 restart
If you turned on the clusters, you can perform a hot reboot with downtime of 0 s. pm2 reloadshould be enough for most cases.
pm2 reload
: pm2 gracefulReload, , Apache. , .
pm2 gracefulReload
: http://pm2.keymetrics.io/docs/usage/cluster-mode/#graceful-reload
Source: https://habr.com/ru/post/1611520/More articles:Is an STL container pointer safe? - c ++How to reduce shiny interactive rmarkdown fields? - htmlAngularJS Google Maps: Add / Update Token and Update Center by Click - AngularjsProper use of tuples in Python - pythonUsing language in Spring - javalazy variable with closure - lazy-evaluation: vsplit autocomplete does not work with / django / directory in VIM - vimTFS 2015 Custom assembly variables not included as environment variables - powershellHow do you remove vowels from a word and type it? - javaDjango Generic View UpdateView Redirect URLs with Updated Version of slug - djangoAll Articles