Hi!
I'm configuring a loadbalancing web server.
In my previous experiments, I was able to get heartbeat to control a apache2 service directly. Now, I want to go to the next stop: use ldirectord to load balance between 2 apache servers.
It's a 4-host environment. All 4 hosts are connected to the same lan switch. As a matter of fact, it's all working on virtual machines. I have 4 virtual machines (qemu) connected to a bridge that enables connection to my real machine.
Now, I have configured ldirectord so that it recognizes when an apache server goes up or down on both loadbalancers and heartbeat is able to switch the ldirectord service between both nodes.
Now, after i start the whole thing, i just don't see any changes at all in networking in the active ldirectord host (besides the addition of the virtual IP, of course).
Now, I _guess_ there should be a mechanism through which requests arriving at the virtual IP are sent to the real servers, however, I see nothing like that. Nothing with netstat -lntp, nothing with NATting, nothing at all. So I guess I simply skipped something on the ldirectord configuration to finish the whole thing. What could it be?
Here's the ldirectord.cf file:
Code:
checktimeout=3
checkinterval=5
autoreload=yes
logfile="/var/log/ldirectord.log"
quiescent=yes
virtual=192.168.200.106:80
fallback=127.0.0.1:80
real=192.168.200.101:80 gate
real=192.168.200.102:80 gate
service=http
request="ldirector.txt"
receive="ldirector"
scheduler=wlc
protocol=tcp
checktype=negotiate
What am I missing?
Thanks in advance.