How to integrate monit into web app deployment process
        Posted  
        
            by 
                shabunc
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by shabunc
        
        
        
        Published on 2012-04-10T09:02:08Z
        Indexed on 
            2012/04/10
            11:32 UTC
        
        
        Read the original article
        Hit count: 334
        
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.
© Server Fault or respective owner