Was missing the DBD::mysql module so the connectioncheck was failing and setting weight to 0.<br><br>only noticed this when i ran ldirector in debug mode.<br><br><br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 5:24 PM, Brett Cave <span dir="ltr"><<a href="mailto:brettcave@gmail.com">brettcave@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">hi all,<br><br>have a problem with HA / LB system, using heartbeat for HA and ldirector / ipvs for load balancing.<br>
<br>When the primary node is shut down or heartbeat is stopped, the migration of services works fine, but the loadbalancing does not work (ipvs rules are active, but connect connect to HA services). Configs on primary and secondary are the same:<br>

<br><br>haresources:<br>primary <a href="http://172.16.5.1/16/bond0" target="_blank">172.16.5.1/16/bond0</a> ldirectord::<a href="http://ldirectord.cf" target="_blank">ldirectord.cf</a><br><br><a href="http://ldirectord.cf" target="_blank">ldirectord.cf</a>:<br>
virtual = <a href="http://172.16.5.1:3306" target="_blank">172.16.5.1:3306</a><br>
       service = mysql<br>       real = <a href="http://172.16.10.1:3306" target="_blank">172.16.10.1:3306</a> gate 1000<br>       checktype, login, passwd, database, request values all set<br>       scheduler = sed<br><br>
ip_forward is enabled (checked via /proc, configured via sysctl)<br>
<br><br>network configs are almost the same except for the IP address (using a bonded interface in active/passive mode)<br>have set iptables policies to ACCEPT with rules that would not block the traffic (99.99% sure on this).<br>

<br>if i try connect from a server such as 172.16.10.10, i cannot connect if the secondary is up:<br>[user@someserver]$ mysql -h 172.16.5.1<br>ERROR 2003 (HY000): Can't connect to MySQL server on '172.16.5.1' (111)<br>

<br><br>perror shows that 111 is Connection Refused<br><br>running a sniffer on the secondary HA box, i dont see the tcp 3306 packets coming in. <br><br>the arp_ignore / arp_announce kernel params are configured on teh real server, HA ip address is added on a /32 subnet to the lo interface, etc, etc.... (everything works 100% when primary is up).<br>

<br>sure it is something i have overlooked, any idea's?<br><br><br>
</blockquote></div><br>