<div dir="ltr"><div><div><div><div>As I understand it, there are two ways to monitor the status of a resource.<br><br></div>1) Use the monitor action on the resource agent script - this is equivalent to polling the resource at every <monitor interval><br>
<br></div>2) Write a value into the cib, and create a constraint rule and scoring to handle failover based on the value of that attribute. This is what the ocf:heartbeat:ethmonitor resource agent does.<br><br></div>In the second case, what is the interval at which the cib value is monitored? Does the constraint rule just get checked on an event basis - ie, whenever the cib value changes, the rule is evaluated again)?<br>
<br></div>Thanks,<br>Sam<br></div>