Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 95385 invoked from network); 20 Jul 2005 09:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jul 2005 09:15:25 -0000 Received: (qmail 36127 invoked by uid 500); 20 Jul 2005 09:15:17 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 36012 invoked by uid 500); 20 Jul 2005 09:15:15 -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 35995 invoked by uid 99); 20 Jul 2005 09:15:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jul 2005 02:15:15 -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; Wed, 20 Jul 2005 02:15:10 -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+eQmHYnO6n; Wed, 20 Jul 2005 11:15:01 +0200 From: "Sergio Leonardi" To: Subject: RE: mod-cache-requestor plan Date: Wed, 20 Jul 2005 11:17:25 +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: AcWM9QzTikovlC5FSD+EvbwRMr9fDAAFKmMg In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi I can just tell you something on point #2. In my opinion mod-cache-requester should pass in the regeneration = request what a normal user should pass to the system (e.g. cookies, header = variables and so on) because a portion of these data can be relevant in order to generate the page correctly. mod-cache currently keeps track of HTTP response (header and body), I = think the best is to keep track of HTTP request too in order to re-run a copy = of it to regenerate the page. Does it makes sense? Sergio -----Original Message----- From: Parin Shah [mailto:parin.soc@gmail.com]=20 Sent: mercoled=EC 20 luglio 2005 8.34 To: dev@httpd.apache.org Subject: Re: mod-cache-requestor plan Hi All, We are now almost at consesus about this new mod-cache-requester module's mechanism. and now I believe its good time to start implementing the module. But before I could do that, I need some help from you guys. - I am now comfortable with mod-cache, mod-mem-cache, cache_storage.c, cache_util.c etc. - But still not too sure how to implement couple of things. 1. How to start the new thread/process for mod-cache-requester when server start. any similar piece of code would help me a lot. 2. how mod-cache-requester can generate the sub request just to reload the content in the cache. 3. In current scheme, whenever mod-cache-requester pulls first entry from pqueue ('refresh' queue) it re-requests it to reload. now by the time this re-request is done, page might actually have been expired and removed from cache. in such case should mod-cache reload it or should wait for next legitimate request. Your thoughts on any/all on these issues would be really helpful. Thanks Parin. On 7/19/05, Ian Holsman wrote: > Parin Shah wrote: > >>you should be using a mix of > >> > >># requests > >>last access time > >>cost of reproducing the request. > >> > > > > > > Just to double check, we would insert entry into the 'refresh queue' > > only if the page is requested and the page is soon-to-be-expired. = once > > it is in the queue we would use above parameters to calculate the > > priority. Is this correct? or let me know If I have mistaken it. > > > yep. > thats the idea. > refresh the most-popular pages first. >=20 > > > >>see memcache_gdsf_algorithm() in mod_mem_cache.c for an = implementation > >>of this, which assumes 'length' of request is related to the cost of > >>reproducing the request. > >> > >>the priority queue implementation is sitting in mod_mem_cache, and = could > >>be used to implement the 'refresh' queue I would think. > >> > > > > I feel comfortable with mod-cache and mod-mem-cache code now. but we > > also need to start new thread/process for mod-cache-requester when > > server starts. I am not too sure how we could implement it. any > > pointers to the similar piece of code would be really helpful to me. > > > I don't have any code which does this to share with you (others might > know of some). >=20 >=20 > > Thanks, > > Parin. > > > --Ian >=20 >