tc lewis wrote:
>
> ok, this definitely makes sense.
> solution 1 won't work for me (way way way too many sites). =)
> solution 2 i just don't like, heh.
> solution 3 is wise.
>
Solution 3 is good for performance, and easy to maintain for virtual
hosting. The httpd.conf of Apache is the same for all the web servers,
so you can edit one and copy it to all other servers.
> i'm trying to switch to vs-dr.
> i now have:
> [root@jammer /root]# /sbin/ipvsadm
> IP Virtual Server version 0.8.3 (size=4096)
> Protocol LocalAddress:Port Scheduler Flags
> -> RemoteAddress:Port Forward Weight ActiveConn InActConn
> TCP 206.245.168.31:80 rr
> -> 192.168.123.3:80 Route 1 0 0
> -> 192.168.123.2:80 Route 1 0 0
>
> real servers are the same.
No, this won't work.
You need configure the 206.245.168.31 on a non-arp interface alias or
use Horm's redirect approach for the LVS/DR. Please have a look at
http://www.LinuxVirtualServer.org/arp.html for more information.
You probably need to configure external IP address on the real servers
too, so that the outgoing packets don't go through the load balancer,
but follow their own routes.
Hope it helps,
Wensong
> i threw a "Listen 206.245.168.31:80" in my apache config for kicks.
> now i'm not getting connections at all.
>
> i'm assuming this has something to do with the fact that my client machine
> and my real servers can't contact each other because the real servers are
> internal 192.168.123.x addresses. i still have masquerading setup (using
> my director as the gateway just for convenience), but that doesn't seem to
> be working. so i added a 192.168.123.0/24 route to my client machine and
> a 205.147.201.0/24 route to the real servers (they're behind the same
> router) to see if that would help, but it still doesn't. no connections
> at all...
>
> [tcl@devel tcl]$ telnet 206.245.168.31 80
> Trying 206.245.168.31...
>
> <hang forever>...
>
> i'm guessing this may still have something to do with the real servers
> being unroutable ips, even tho it shouldn't be trying to route through
> anything...hmm...i'm confused. =)
>
> any ideas?
>
> -tcl.
>
----------------------------------------------------------------------
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
To unsubscribe, e-mail: lvs-users-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: lvs-users-help@xxxxxxxxxxxxxxxxxxxxxx
|