On Thu, Apr 8, 2010 at 9:43 PM, Simpson, John R <[email protected]> wrote: > I believe what you're looking for is migration-threshold. > > In the following Pacemaker snippet if Apache is stopped, if the website > http://localhost/index.html doesn't respond, or if the HTML body doesn't > contain "node", WebSite's failcount will be incremented by one and Apache > will be restarted. If failcount reaches two, WebSite will be moved to the > other node. > > Monitor the status with "crm_mon --failcounts", and afterwards clear the > failcount with "crm resource cleanup WebSite [<nodename>]". > > primitive WebSite ocf:heartbeat:apache \ > params configfile="/etc/httpd/conf/httpd.conf" \ > op monitor interval="30s" statusurl="http://localhost/index.html" > testregex="node" \ > op start interval="0" timeout="90s" \ > op stop interval="0" timeout="100s" \ > meta migration-threshold="2" > > p.s. Cluster experts -- should the migration threshold be tied to WebSite, or > should it be tied to the group that contains the website and the virtual IP > address?
To the WebSite resource _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
