-SOLVED-
I forgot to add the local loopback in the server 3 to the loadbalancer's IP.
Thanks.
Hi,
I have this setup already running :
Quote:
Load Balancer - Server1 | Server2
|
I then tried to add another server
Quote:
SOURCE WWW -> Load Balancer -> Server1 | Server2 | Server 3
|
using the same configuration just like the Server 1 and Server 2.
The errors on SOURCE WWW were something like :
Quote:
[error] (110)Connection timed out: proxy: HTTP: attempt to connect to :80 (a.b.c.d) failed
[Fri May 13 16:53:14 2011] [error] (110)Connection timed out: proxy: HTTP: attempt to connect to a.b.c.d:80 (a.b.c.d) failed
[Fri May 13 16:53:14 2011] [error] ap_proxy_connect_backend disabling worker for (a.b.c.d)
[Fri May 13 16:53:14 2011] [error] proxy: HTTP: disabled connection for (a.b.c.d)
|
notes :
virtualIP_loadbalancer : a.b.c.d
virtualIP_Server1 : e.f.g.1
virtualIP_Server2 : e.f.g.2
virtualIP_Server3 : e.f.g.3
the ipvsadm script is something like this :
Quote:
echo " -A -t a.b.c.d:80 -s wrr
-a -t a.b.c.d:80 -r e.f.g.1:80 -g -w 1
-a -t a.b.c.d:80 -r e.f.g.2:80 -g -w 2
-a -t a.b.c.d:80 -r e.f.g.3:80 -g -w 2
" | /sbin/ipvsadm -R
|
For additional information :
- my previous setup using only two servers were all okay. If I add the 3rd server, the first two also works fine but I get the errors on SOURCE WWW just like I mentioned above.
- selinux and firewall are disabled
- accessing the Server 3's Apache directly is working fine