I setup 2 load balancers following this tutorial http://www.howtoforge.com/high_availability_loadbalanced_apache_cluster_p2 The load balancers work great, but i cannot get Apache to server the website. Im using Fedora for the nodes and they are showing online. I have reduced the node to just one server to make sure i am connecting to just one to figure this out i have added net.ipv4.ip_nonlocal_bind = 1 to the node to allow Apache to bind to the address. Code: checktimeout=10 checkinterval=2 autoreload=no logfile="local0" quiescent=yes virtual=192.168.1.120:80 real=192.168.1.241:80 gate real=192.168.1.244:80 gate fallback=127.0.0.1:80 gate service=http request="ldirector.html" receive="Test Page" scheduler=rr protocol=tcp checktype=negotiate basic virtual host on Apache. Code: <VirtualHost 192.168.1.120:80> DocumentRoot "/var/www/test" <Directory "/var/www/test"> allow from all Options +Indexes </Directory> </VirtualHost> Code: lb1a:~# /sbin/ipvsadm -L -n IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 192.168.1.120:80 rr -> 192.168.1.244:80 Route 0 0 0 -> 192.168.1.241:80 Route 1 0 0 Code: eth0 Link encap:Ethernet HWaddr 00:80:AD:40:78:00 inet addr:192.168.1.126 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::280:adff:fe40:7800/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:22719 errors:0 dropped:0 overruns:0 frame:0 TX packets:7293 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4289562 (4.0 MiB) TX bytes:1230432 (1.1 MiB) Interrupt:3 Base address:0xd800 eth0:1 Link encap:Ethernet HWaddr 00:80:AD:40:78:00 inet addr:192.168.1.128 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:3 Base address:0xd800 eth0:2 Link encap:Ethernet HWaddr 00:80:AD:40:78:00 inet addr:192.168.1.241 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:3 Base address:0xd800 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:517 errors:0 dropped:0 overruns:0 frame:0 TX packets:517 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:47256 (46.1 KiB) TX bytes:47256 (46.1 KiB) so when i browse now to 192.168.1.120 i get a timeout error, so i know Apache is not answering and a net stat only shows the load balancer connections.
Got a little time to work on this tonight. if i creat a Vhost on the node box with an IP set on one of the nics. Apache shows the website. so its like it is not getting the forwarded requests from the load balancer's.
When you have two ISPs you may want to make your linux machine balance the load of your internet access, you can use ip route
little more, i have put everything on separate sub nets with no change. still no packets are being sent to the real servers and the inactconn on the balancers just count up