LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: LVS-Nat vs DR

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: LVS-Nat vs DR
From: "John Barrett" <jbarrett@xxxxxx>
Date: Tue, 4 Nov 2003 21:32:36 -0500
Horms -- enlighten me a little -- NAT requires that realservers use the LVS
box as the default route so that NAT can be preformed on the outbound
packets -- right ?? DR doesnt because all the realservers are bound to the
hidden VIP and can send responses directly out via the default gateway.

Andrew -- the reason I use DR for my apache cluster: since realservers have
the VIP (hidden on the "lo" interface), all the realservers can use exactly
the same config file (in my case, off an NFS volume, along with the
content). The only trick is to have the log and pid files stored on a local
filesystem (/usr/local/apache/logs symlinked to /var/run/httpd is where I
stash it all) -- NAT would require that each realserver have a specialized
config for its RIP address.

Or did I miss something in the docs on nat vs tun vs dr ?? (horms ??)

----- Original Message ----- 
From: "Horms" <horms@xxxxxxxxxxxx>
To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, November 04, 2003 8:17 PM
Subject: Re: LVS-Nat vs DR


> On Tue, Nov 04, 2003 at 10:51:27PM +1300, Andrew Swaine wrote:
> > Hi all
> >
> > In the howto it recommends that LVS-NAT is used for small sites.
> >
> > Is there a bandwidth limit / number of pages served that you would
> > recommend changing from LVS-Nat to DR?
> >
> > Any experiences would be appriciated.
>
> All things are relative. LVS-NAT is actually pretty fast.
> I have seen it do well over 600Mbit/s. But in theory LVS-DR
> is always going to be faster because it does less work.
>
> If you only have 100Mbit/s on your LAN then either will be fine.
> If you have gigabit then LVS-NAT will still probably be fine.
> Beyond that... I am not sure if anyone has tested that to see
> what will happen.
>
> In terms of number of connections, there is a limit
> with LVS-NAT that relates to the number of ports.
> But in practice you probably won't reach that limit anyway.
>
> -- 
> Horms
> _______________________________________________
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://www.in-addr.de/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>