Loadbalancing mysql with heartbeat not working
Hi,
I'm totally new with loadbalancing so please I need a bit of help.
Here's my scenario:
1 loadbalancer (lbsql1 192.168.0.7)
4 mysql server (192.168.0.51 -> 54)
Here's my config files:
lbsql1:~ # cat /etc/ha.d/ha.cf
logfacility local0
bcast
mcast eth0 225.0.0.1 694 1 0
auto_failback off
node lbsql1
respawn hacluster /usr/lib64/heartbeat/ipfail
apiauth ipfail gid=haclient uid=hacluster
lbsql1:~ # cat /etc/ha.d/haresources
lbsql1 ldirectord::ldirectord.cf LVSSyncDaemonSwap::master IPaddr2::192.168.0.7/24/eth0/192.168.0.255
lbsql1:~ # cat /etc/ha.d/authkeys
auth 3
3 md5 mypassword
lbsql1:~ # cat /etc/ha.d/ldirectord.cf
# Global Directives
checktimeout=10
checkinterval=2
autoreload=no
logfile="local0"
quiescent=yes
virtual=192.168.0.7:3306
service=mysqld
real=192.168.0.51:3306 gate
real=192.168.0.52:3306 gate
real=192.168.0.53:3306 gate
real=192.168.0.54:3306 gate
checktype=negotiate
login="ldirector"
passwd="ldirector"
database="ldirectordb"
request="SELECT * FROM connectioncheck"
scheduler=wrr
When I try to connect from my application it fails...
How can I track the problem?
Thanks
|
Recent comments
12 hours 57 min ago
19 hours 38 min ago
23 hours 29 min ago
1 day 1 hour ago
1 day 9 hours ago
1 day 19 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 4 hours ago