meza
meza copied to clipboard
add deploy switch to force restart to all services when used
Request a switch for the DEPLOY command that restarts all services after a successful deploy.
Environment
- all future versions of meza
Issue details
please add a switch to the deploy command that adds a step of restarting all services at the end of a successful deploy (i.e. httpd, haproxy, parsoid, mariadB, memcache, etc..)
As I understand, the value of not doing this is to avoid unnecessary site outages from successful deploys, however, I had a case where a deploy was successful but when the system was restarted for other reasons, httpd would not start due to something that had occured during a deploy. The reason is not important here, but since then I have adopted the practice of manually restarting all the services as a final step in validating a configuration I believe to be ok otherwise.
I certainly don't want to change the default behavior of DEPLOY, but it would be nice if there was an option to do a full restart of everything after a deploy as a final verification of the ability of the services to start up when the system is unattended and the event occurs.
Deploy restarts services as necessary, and otherwise ensures that services are running. If for some reason a service is not running after deploy that seems like something that may not be fixed by yet another restart. Is it happening consistently? Can you identify in deploy logs where a service isn’t being restarted?