<div dir="ltr">I have 2 DB servers (master/slave with replica) and 2 APP servers.<br>2 APP servers managed by pacemaker  (active/passive) , but i want also to monitor "which DB is master". 

I can't use VIP (which could be sticked on master DB) - it is very limited virtual environment.<br><br>Is it possible to create a rule or some other scenario, so in case if master moved - pacemaker will restart APP (app does not support failover) ?<br></div>