Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 18489 invoked from network); 22 Jul 2005 08:54:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jul 2005 08:54:36 -0000 Received: (qmail 25997 invoked by uid 500); 22 Jul 2005 08:54:31 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 25972 invoked by uid 500); 22 Jul 2005 08:54:30 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 25959 invoked by uid 99); 22 Jul 2005 08:54:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 01:54:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [213.92.5.19] (HELO mid-2.inet.it) (213.92.5.19) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jul 2005 01:54:24 -0700 Received: from natrm.etnoteam.it [::ffff:194.185.249.130] by mid-2.inet.it via I-SMTP-5.2.3-520 id ::ffff:194.185.249.130+52rV3LrVI; Fri, 22 Jul 2005 10:54:26 +0200 From: "Sergio Leonardi" To: Subject: RE: mod-cache-requestor plan Date: Fri, 22 Jul 2005 10:56:49 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcWOgvbzCv6KsNe2T4awt8zJPB7NdgAFN+NA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-Reply-To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The basic approach is ok for me, I just make a note. I think that mod_cache should put each cached page in the queue at the = time its entry in the cache is created (or when its expire time has been changed), setting the proper regeneration time in the queue (e.g. regeneration time =3D page expire time - time spent for last page = generation). In such a way there's no need to lookup for what's expiring, just sleep until something needs to be regenerated. Bye Sergio -----Original Message----- From: Parin Shah [mailto:parin.soc@gmail.com]=20 Sent: venerd=EC 22 luglio 2005 8.02 To: dev@httpd.apache.org Subject: Re: mod-cache-requestor plan Thanks Ian, Graham and Sergio for your help.=20 for past couple of days I am trying to figure out how our mod-cache-requester should spawn thread (or set of threads). Currently, I am considering following option. please let me know what you think about this approach. - mod-cache-requester would be a sub-module in mod-cache as Graham had suggested once. - it would look similar to mod-mem-cache. it would have provider (mod-cache-requester-provider, for lack of any better word for now) registered. - mod-cache (cache_url_handler to be precise) will do lookup for this provider and will use this provider's methods to push any page which is soon-to-be-expired in the priority queue. - in the post config of the mod-cache-requester our pqueue would be initialized along with mutexes and other stuff. - now, we would create new thread (or set of threads) in the post config which would basically contain an infinite loop. it (or they) will keep checking pqueue and would make sub requests accordingly. Does this make sense?=20 If this approach is correct then I have some questions regarding thread vs process implementation. I would start discussing it once we have main architecture in place. Thanks, Parin. On 7/20/05, Graham Leggett wrote: > Parin Shah wrote: >=20 > > 2. how mod-cache-requester can generate the sub request just to = reload > > the content in the cache. >=20 > Look inside mod_include - it uses subrequests to be able to embed = pages > within other pages. >=20 > Regards, > Graham > -- >