Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 87814 invoked from network); 24 Jul 2008 16:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2008 16:49:26 -0000 Received: (qmail 37606 invoked by uid 500); 24 Jul 2008 16:49:25 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 37443 invoked by uid 500); 24 Jul 2008 16:49:25 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 37432 invoked by uid 99); 24 Jul 2008 16:49:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 09:49:24 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [80.229.52.226] (HELO grimnir.webthing.com) (80.229.52.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jul 2008 16:48:28 +0000 Received: from grimnir.webthing.com (localhost [127.0.0.1]) by grimnir.webthing.com (Postfix) with ESMTP id 2DBA82136 for ; Thu, 24 Jul 2008 17:48:50 +0100 (BST) Date: Thu, 24 Jul 2008 17:48:49 +0100 From: Nick Kew To: modules-dev@httpd.apache.org Subject: Re: porting from IIS Message-ID: <20080724174849.79a333e3@grimnir> In-Reply-To: <5B0ECC1928CB6C479A734A6BD6209EF002D3FEB7@exchange.Giant-Steps.local> References: <5B0ECC1928CB6C479A734A6BD6209EF002C7D773@exchange.Giant-Steps.local> <20080703154934.2fc192e0@grimnir> <5B0ECC1928CB6C479A734A6BD6209EF002D3FEB7@exchange.Giant-Steps.local> Organization: WebThing X-Mailer: Sylpheed-Claws 2.5.0-rc3 (GTK+ 2.10.6; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 24 Jul 2008 15:56:07 +0300 "Harold J. Ship" wrote: > How it works today: there are 3 types of request: light, medium and > heavy. > We will need 2 "pools" of threads. One for handling light requests, > and one for medium/heavy. That sounds rather like a new MPM. > The light requests can be dealt with by the usual mechanism. > The medium and heavy requests should be passed by the to the other > thread pool, freeing the original "ordinary" thread to handle more > incoming requests. That, on the other hand, sounds like solving a problem that isn't there. Unless you really need priority queues, you can just let everything run in parallel. > We are worried that if we try to process the medium and heavy requests > with a thread pool, then either the "ordinary" thread will block > anyway, or the next filter will get starved. Hmm? Why do you suppose that? > The heavy requests mentioned above are to be sent to another server. So that's a (reverse) proxy architecture. Apache is happy with that, and indeed it's a very common scenario. -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.org/