I'm using apache as a load balancer, I try to use heartbeat with it. To do this I have 2 load balancers with different IP adresses. This is my configuration :
In the file /etc/ha.d/ha.cf :
logfile /var/log/ha-log
bcast eth0
keepalive 2
warntime 10
deadtime 30
initdead 120
udpport 694
auto_failback yes
node apache-balance-1
node apache-balance-2
uuidfrom nodename
respawn hacluster /usr/lib/heartbeat/ipfail
In /etc/ha.d/haresources : (I'm not sure about this IP address, does it need to be real or virtual?)
apache-balance-1 192.168.1.51 apache2
In /etc/ha.d/authkeys :
auth 2
2 crc
Then I configure apache to listen on the vip. edit /etc/apache2/ports.conf on both load balancers: Listen 192.168.1.51:80 -> when I put this line on the file, apache do'nt want to start again.
Does everything ok? To test it I shutdown the IP address of the balance-1 but nothing work anymore, do you know why? The configuration or the test?
Thank you