Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2003 21:40:03 +0200
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        Peter Gradwell <peter@gradwell.com>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Load Balancing
Message-ID:  <20030516214003.213bd63a.sheepkiller@cultdeadsheep.org>
In-Reply-To: <5.1.0.14.2.20030516154351.066350a8@pop3.gradwell.net>
References:  <5.1.0.14.2.20030516154351.066350a8@pop3.gradwell.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 16 May 2003 15:52:39 +0100
Peter Gradwell <peter@gradwell.com> wrote:

> Hello
> 
> Has anyone come accross anything like the LinuxVirtualServer
> project for FreeBSD? (www.linuxvirtualserver.org) which provides
> a generic tcp load balancer in software?

As far as I know there's only only one "usable" load balancing solution
: loadd (www.bsdshell.net). But it seems that development is stopped,
but it can't be considered as a "FreeBSD Virtual Server".
I started to patch natd to provide load balancing algorithms but natd
is not the better way to do this, because of natd lives in userland and
listen to divert socket.
loadd (latest CVS version) uses netgraph to translate packets but, NAT
implementation is very poor and seems to be CPU intensive.

IMHO, as long as FreeBSD doesn't have in-kernel NAT capabilty, LVS
equivalent is not possible. 
Using KAME in-kernel NAT may be a good way to start the work. :)

Currently, FreeBSD can provide only round-robin load balancing.
You can use :
	* ipfilter round-robin capabilty
	* pf for FreeBSD

Don't use natd to do LSNAT, internal hash is based on aliased IP and
port, incoming redirections can't be store in a unique place in the
table, so look up takes a long long time under heavy load...

it was my 2 cents advices :)

clem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030516214003.213bd63a.sheepkiller>