<div dir="ltr"><div><div>Hi All -<br><br>I've run through the Clusters from Scratch guide and have a decent grasp on how to set up basic functionality such that resources failover on node failure (ie, if node-A goes down, all resources are shunted over to node-B).<br>
<br>I have a high-level concept that I fear I am failing to grasp.<br><br></div>What I am trying to figure out now is how to failover resources if that resource goes down (ie, on node-A I see that httpd is down, so the httpd resource is immediately failed over to node-B). In my current configuration (two NICS in rrp:active), httpd is simply restarted on the original node after the monitor interval has passed.<br>
<br></div>The ocf:heartbeat:ethmonitor resource agent does this by writing the status of the monitored nic to the CIB via attrd_updater. A constraint is then written to monitor that CIB attribute, which then handles the failover.<br>
<br>Is there any way to simply monitor the response of an arbitrary ocf monitor call, and immediately fail the affected resource over?<br><br>Thanks for any help,<br>Sam<br></div>