From owner-freebsd-stable@FreeBSD.ORG Fri Apr 22 09:11:08 2005 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 621C316A4CE for ; Fri, 22 Apr 2005 09:11:08 +0000 (GMT) Received: from email-1.eurowings.com (email.eurowings.com [193.96.182.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C1DE43D41 for ; Fri, 22 Apr 2005 09:11:06 +0000 (GMT) (envelope-from h.kipp@eurowings.com) Received: from localhost (email-1 [127.0.0.1]) by email-1.eurowings.com (Postfix) with ESMTP id 3E66268084 for ; Fri, 22 Apr 2005 11:20:38 +0200 (CEST) Received: from email-1.eurowings.com ([127.0.0.1]) by localhost (email-1.eurowings.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26779-10 for ; Fri, 22 Apr 2005 11:20:38 +0200 (CEST) Received: from EXCH4.eurowings.com (unknown [10.100.1.36]) by email-1.eurowings.com (Postfix) with ESMTP id 148346807E for ; Fri, 22 Apr 2005 11:20:38 +0200 (CEST) Received: from EXCH5.eurowings.com ([10.100.1.37]) by EXCH4.eurowings.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 22 Apr 2005 11:10:52 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Fri, 22 Apr 2005 11:10:52 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD and very heavy web server Thread-Index: AcVHFvOtO2E8O71DRXyDzZcEejVZiwAAdoHL From: "Kipp Holger" To: "peceka" X-OriginalArrivalTime: 22 Apr 2005 09:10:52.0344 (UTC) FILETIME=[2EB83380:01C5471B] X-Virus-Scanned: amavisd-new at eurowings.com Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-stable@freebsd.org Subject: RE: FreeBSD and very heavy web server 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, 22 Apr 2005 09:11:08 -0000 peceka wrote on Fri 22.04.2005 10:40 > On 4/21/05, Kipp Holger wrote:=20 > > peceka wrote on Thu 21.04.2005 11:02 > Yes, I expect many parallel connections...=20 > I've got two machines for that, so traffic will be divided by DNS > round robin. But 1024 child processes will be good thing too, thanks. > > - Does it make sense to separate static and dynamic requests? > > You might want to use separate servers(*) for static and > > dynamic requests, using a quick low-footprint webserver for > > static requests that allows for many parallel requests. Maybe > > lighttpd is all you need (ymmv) > Unfortunately, all pages will be dynamic :\ You don't have any static requests for .gif/.jpg/.css-files etc.? lighttpd does support php4, CGI, FastCGI and load-balanced FastCGI, and also php-code caching. Just go to http://www.lighttpd.net/=20 I haven't tried it myself, though, as we have slightly more complicated requirements here ;-) > > - Make sure you don't run out of mbufs, open file descriptors etc. > Ok, I'll have an eye open on this. If you have a lot of parallel connections you might also want to monitor tcp connections and tune corresponding sysctls, so you don't have any useless entries in your tables. But I'm not an expert in this field (especially with10k+ open sockets...) - the default settings have worked for me most of the time. Regards, Holger