How to integrate monit into web app deployment process
- by shabunc
I have:
Tomcat with webapp deployed via mvn tomcat:redeploy.
Monit, pinging the host and restarting server if ping failed.
The thing is there in a moment during the redeployment when ping will fail - and this is normal, actually.
So, the question is - what is the best way to teach monit to consider the fact of redeployment and not to confuse it with "real" black outs.
This is of course an issue of balance between elegance, ease of implementation and scalability. The most straightforward solution I can think of - is just to shutdown monit before deployment and start it up after once again. But this if far from elegance I guess.