On Tue, 2010-02-16 at 22:24 +0100, Michael Schwartzkopff wrote:
Yes. Perhaps your could add some lines to your ldirectord OCF script t
ocheck 
> the state of the sync daemon.
> 
> But this setup works when I have my classes.



Personally I have ipvsadm init script chkconfig'd on so it will start at
boot time, then the following in /etc/ipvsadm.rules on node1:

--start-daemon master --syncid 50
--start-daemon backup --syncid 51

Then the following in /etc/ipvsadm.rules in node2:

--start-daemon master --syncid 51
--start-daemon backup --syncid 50

It could be easily added to the ldirectord RA and I keep meaning to do
it (like lots of other things).

Aside from this I have the cluster start ldirectord and an IPAddr2 RA
using the param lvs_support=true, add the VIP to lo on both nodes, set
the LVS ARP ignore sysctl params and you're away.

This gives you load-balancing for free on top of HA, not sure why more
people don't do it TBH.
http://www.clusterlabs.org/wiki/Load_Balanced_MySQL_Replicated_Cluster#M
ySQL_Configuration 

Regards,
Darren
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to