On Thu, May 06, 2004 at 07:22:25PM +0200, mike jones wrote:
> I have managed to setup a lvs-dr server which includes 3 win2k servers as
> realserver. Telnet works fine. Http does not connect-- "ipvsadm -L" shows 1
> inactive connection! The required http web service is configured as port
> 8080 not 80 . Reading the mini lvs howto I came across the following:-
> **************************************
> " 5.4. Setup LVS-DR for the service http
> IMPORTANT: Make sure the realservers are listening to port 80 on the VIP,
> 192.168.1.110 AND NOT to its own IP (not listening to the RIP e.g.
> 192.168.1.11, 192.168.1.12), i.e both realservers are listening to the same
> IP. Make the 2 webpages a little different so that you can tell which
> realserver you have connected to. You will need the VIP on lo:0 before the
> httpds will start"
> ***************************************
> My setup -lvs-dr
> VIP address 8.168.0.110
> realserver 8.168.0.3
> Question 1. How do I make sure the realservers are listening to port 80 or
> maybe, 8080 in my case,on the VIP AND NOT to its own IP?(win2k realservers)
>
> Question 2. The configuration script(lvs_dr.conf) for director doesn't allow
> port # insertion -- port number as 80(http-default) is assumed. How do I
> define the service using ipvsadm? Is the following correct based on my
> understanding of "man ipvsadm"?
> /sbin/ipvsadm -A -t 8.168.0.110:8080 -s rr
> /sbin/ipvsadm -a -t 8.168.0.110:8080 -r 8.168.0.3:8080 -g
That should be fine from an LVS point of view.
I am not sure about lvs_dr.conf.
In a nutshell, the following will work with all forwarding mechanisms
(including LVS-DR).
VIP:80 -> RIP:80
VIP:8080 -> RIP:8080
VIP:X -> RIP:X
This however, will only work if you use LVS-NAT.
VIP:80 -> RIP:8080
VIP:X -> RIP:Y
--
Horms
|