From owner-freebsd-hackers Sat Dec 7 18:02:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA20871 for hackers-outgoing; Sat, 7 Dec 1996 18:02:16 -0800 (PST) Received: from asstdc.scgt.oz.au (root@asstdc.scgt.oz.au [202.14.234.65]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA20858 for ; Sat, 7 Dec 1996 18:02:13 -0800 (PST) Received: (from imb@localhost) by asstdc.scgt.oz.au (8.7.6/BSD4.4) id NAA26188 Sun, 8 Dec 1996 13:02:00 +1100 (EST) From: michael butler Message-Id: <199612080202.NAA26188@asstdc.scgt.oz.au> Subject: Re: Apache and huge numbers of IP's.. In-Reply-To: <3.0.32.19961207151655.007d7e90@pop.calweb.com> from Jason Fesler at "Dec 7, 96 03:16:57 pm" To: jfesler@calweb.com (Jason Fesler) Date: Sun, 8 Dec 1996 13:01:59 +1100 (EST) Cc: hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Jason Fesler writes: > Anyone have a suggestion? I'm trying create a config file > with 400+ domains, each with two IP addresses (I'm in the middle > of relocating ip services thanks to NCIT/PAGESAT flaking and filing). [ .. ] > One suggestion was a failure of the select(2) call failing on > file handles over 256. Anyone have any suggestions on how to > correct the problem, or at least give a shot at raising this > maximum up? I'd like to ideally put 500 domains on this box :( .. We meet again Jason :-) The number of file handles available is related to the maxusers config parameter. If you wish to alter that without affecting the other table sizes, you can add something like this to your config file .. options "CHILD_MAX=512" options "OPEN_MAX=512" .. numbers should be tweaked as required. However, since the sockets the server has open in the quiescent state are only used to listen on, as soon as a request occurs more will be needed. You have to identify the high-water mark. Personally, with that many domains, I'd be inclined to use multiple boxes to divide the load, michael