Upgrade to pacemaker 1.0 and look in the docs for migration-threshold
On Wed, Jul 29, 2009 at 5:51 PM, Dan Searle<[email protected]> wrote: > Hi, > > In sort: > I want to configure heartbeat 2.1.3 (in CIB mode) to migrate a resource > to another node if another resource fails multiple times within a short > time period. > > Detail: > I have a floating IP address using an IPaddr resource shared between two > nodes which are both running a cloned TCP server service (a proxy server > to be precise). So in normal operation the proxy resource runs on both > nodes, and if one goes down the floating IP is re-assigned to the other > node, this works fine. > > However, I want the floating IP to migrate to the other node if the > proxy resource fails multiple times, say fail count is >= 4 times in 1 > hour. I can reset the fail count ever hour on a cron job using something > like: > > crm_failcount -U /node_where_failure_occurred/ -r > /resource_that_failed/ -D > > But how to I set up the constraints so that the IPaddr resource migrates > depending on the cloned proxy resource's fail count? > > Regards, Dan... > > > > > > ------------------------------------------------------------------------------------ > Scanned for viruses, spam and offensive content by CensorNet MailSafe > > Try CensorNet free for 14 days. Provide Internet access on your terms. > Visit www.censornet.com for more information. > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems > _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
