On Fri, Nov 24, 2006 at 07:18:46AM -0800, Joseph Mack NA3T wrote:
> On Fri, 24 Nov 2006, Mindaugas wrote:
>
> >>>I need the following setup preferably with LVS-NAT:
> >>>VIP:80 --> RS1:80, RS1:81, RS1:82, RS2:80, RS2:81, RS2:82
> >>VIP:80 goes to 6 realservers (which are running on 2 boxes, but the
> >>director
> >>doesn't know that).
> >
> >Problem is that :80 does not work on LVS-NAT. IPVS does not
> >change destination port.
>
> the prime functionality of LVS-NAT is that it rewrites the ports and
> the IP. People rarely rewrite the ports so it's possible that it
> doesn't work anymore. However if my setup wasn't working, I wouldn't
> use failure to rewrite ports as my first hypothesis for an
> explanation. Can you try this rewriting first
>
> VIP:80 --> RS1:8080,RS2:8080
It should work. The caveat is that doesn't work if a real-server is
the same machine as the linux-director. There are patches (by me) in
the mailing list archives that get around this problem. But they have
not been sufficiently tested to be incoporated into the kernel.
--
Horms
H: http://www.vergenet.net/~horms/
W: http://www.valinux.co.jp/en/
|