My Eyes They Burn
11th February 2007, 09:54
I've followed the guide, making a few adjustments. I'm running Debian Testing (Etch currently) and instead of installing UltraMonkey, I've installed heartbeat-2 and ldirectord-2 via standard Apt repositories. I've also installed MySQL via standard repositories, and configured the cluster as per Debian instructions and config files.
Everything is working fine accept that the virtual IP is forwarding traffic to whichever Loadbalancing server is currently Master, rather than through to one of the MySQL cluster (storage) nodes. For example, if I SSH, ping, or try connecting with MySQL to the virtual IP, it will connect to 'loadb1' if 'loadb1' is currently the master heartbeat server. Otherwise, it connects me to 'loadb2' when it has taken over. Shouldn't it be forwarding me to 'MySQL1' and/or 'MySQL2'?
One other thing that I've noticed is when issuing 'ipvsadm' command, I show a weight of 0, instead of 1 (or other):
gossamer:/# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.0.32:mysql wrr
-> 192.168.0.13:mysql Route 0 0 0
-> 192.168.0.12:mysql Route 0 0 0
'gossamer' is 'loadb1' and the MySQL NDB MGM server. 192.168.0.32 is the virtual IP.
Any suggestions? Let me know if you'd like to see configs.
Thanks.
-Nick
Everything is working fine accept that the virtual IP is forwarding traffic to whichever Loadbalancing server is currently Master, rather than through to one of the MySQL cluster (storage) nodes. For example, if I SSH, ping, or try connecting with MySQL to the virtual IP, it will connect to 'loadb1' if 'loadb1' is currently the master heartbeat server. Otherwise, it connects me to 'loadb2' when it has taken over. Shouldn't it be forwarding me to 'MySQL1' and/or 'MySQL2'?
One other thing that I've noticed is when issuing 'ipvsadm' command, I show a weight of 0, instead of 1 (or other):
gossamer:/# ipvsadm
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.0.32:mysql wrr
-> 192.168.0.13:mysql Route 0 0 0
-> 192.168.0.12:mysql Route 0 0 0
'gossamer' is 'loadb1' and the MySQL NDB MGM server. 192.168.0.32 is the virtual IP.
Any suggestions? Let me know if you'd like to see configs.
Thanks.
-Nick