ldirectord not forwarding remote requests properly

Alex Davies <[email protected]>
Newsgroups gmane.linux.highavailability.ultramonkey
Message-ID <[email protected]>
Hi,

I have ldirectord set up on a server loadbalancing between two apache
servers - one "local" to the loadbalancer and one remote. I have two
loadbalanced IPs - one is loadbalancing port x.x.x.100:8080 (running thttpd)
and one port x.x.x.101:80 (apache). The two real servers are known as
"trust1" and "trust2". The two IPs of the loadbalancers are both known as
"trust".

ldirectord shows that both servers are working fine:

IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
  -> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  trust.xxxxxxxxxxxxxxxxxx.com: wrr
  -> trust2.xxxxxxxxxxxxxxxxxx.com Route   1      1          57
  -> trust1.xxxxxxxxxxxxxxxxxx.com Local   1      2          67
TCP  trust.xxxxxxxxxxxxxxxxxx.com: wrr
  -> trust2.xxxxxxxxxxxxxxxxxx.com Route   1      0          0
  -> trust1.xxxxxxxxxxxxxxxxxx.com Local   1      0          0

The top one is apache, and works fine - requests are going to both servers.

However, the second one does not work - the stats remain at 0 at all times
and all ret quests go to the local node - the remote one gets no requests.

The firewall config is the same for port 80 as for port 8080.

Furthermore, if I add another config for x.x.x.100:8080 (i.e. the IP that
works) it starts to work absolutly fine. In other words, it is purely the
second IP that is broken. ifconfig shows no difference in IP (apart from the
last digit of the IP) between the .101 and .100 on either node. I am very
confused and have spent hours fiddling with this :)

Any guesses why this does not work, and any suggestions for tracking down
the problem would be gratefully received.

Many thanks,

Alex Davies
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.