From owner-freebsd-stable@FreeBSD.ORG Fri Mar 19 07:58:17 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 095B916A4CE for ; Fri, 19 Mar 2004 07:58:17 -0800 (PST) Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F28143D46 for ; Fri, 19 Mar 2004 07:58:15 -0800 (PST) (envelope-from Holger.Kipp@alogis.com) Received: (from hk@localhost) by alogis.com (8.11.1/8.9.3) id i2JFvFE51539; Fri, 19 Mar 2004 16:57:15 +0100 (CET) (envelope-from hk) Date: Fri, 19 Mar 2004 16:57:15 +0100 From: Holger Kipp To: apache Message-ID: <20040319165715.A49040@intserv.int1.b.intern> References: <20040318134327.E89A443D4C@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20040318134327.E89A443D4C@mx1.FreeBSD.org>; from freebsdkid@tom.com on Thu, Mar 18, 2004 at 09:44:00PM +0800 cc: "freebsd-stable@freebsd.org" Subject: Re: HowTo Implement This..LOAD BALANCE.. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 15:58:17 -0000 On Thu, Mar 18, 2004 at 09:44:00PM +0800, apache wrote: > Hello,EveryOne. > here, I wanna use the freebsd the balance the load of servers. > > Here I have implement this using the apache's modules "mod_rewrite",but I think it is not more > efficient. because ,when I do "netstat -n " there si so much tcp connectting with > state "TIME_WAIT",as this ,When I increase the " MaxClients "in the httpd.conf ,when I do some other > programme like"FTP,/usr/local/apache2/bin/ab ",I got an error"Socket:no buffer space available", > How can I avoid this ? see "man tuning". "no buffer space available" is a FAQ. -- -- -- see http://www.freebsd.org/cgi/man.cgi?query=ipnat&sektion=5#LOAD-BALANCING for load balancing using ipnat. -- -- -- see the ports /usr/ports/www/pound /usr/ports/net/plb /usr/ports/net/pen /usr/ports/net/haproxy /usr/ports/net/balance if any of those do what you actually need. if both webservers shall have approximately the same load and serve the same pages, then even a simple dns round robin might be all you need. -- -- -- for explanation of TIME_WAIT, the following link might be useful: http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/unix-socket-faq-2.html Regards, Holger Kipp