Return-Path: Delivered-To: apmail-repository-archive@www.apache.org Received: (qmail 76764 invoked from network); 14 Jul 2004 15:54:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jul 2004 15:54:30 -0000 Received: (qmail 8264 invoked by uid 500); 14 Jul 2004 15:54:29 -0000 Delivered-To: apmail-repository-archive@apache.org Received: (qmail 8154 invoked by uid 500); 14 Jul 2004 15:54:29 -0000 Mailing-List: contact repository-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: repository@apache.org Delivered-To: mailing list repository@apache.org Received: (qmail 8132 invoked by uid 99); 14 Jul 2004 15:54:29 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [130.214.10.19] (HELO mx1.try.sybase.com) (130.214.10.19) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 14 Jul 2004 08:54:23 -0700 Received: from mail.try.sybase.com (mail.try.sybase.com [130.214.10.18]) by mx1.try.sybase.com (8.11.6/8.11.0) with ESMTP id i6EEtt216826; Wed, 14 Jul 2004 08:55:55 -0600 Received: from tsws1 ([10.22.120.117]) by mail.try.sybase.com (8.11.6/8.11.6) with SMTP id i6EFUjk32623; Wed, 14 Jul 2004 09:30:45 -0600 Message-ID: <08eb01c469ba$d4170b10$e671eb43@sybase.com> From: "Adam R. B. Jack" To: "Depot Development" , References: <40F547B8.3090906@latte.harvard.edu> Subject: Re: ASF Repository, closer.cgi and Depot Date: Wed, 14 Jul 2004 09:40:43 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "Mark R. Diggory" To: ; Sent: Wednesday, July 14, 2004 8:48 AM Subject: ASF Repository, closer.cgi and Depot > Sorry for the cross post but this seems relevant to both these groups. > > I was thinking about the subject of mirroring and redirection for the > ASF Repository. Currently, there was some discussion on the Depot list > concerning this. I feel we could address this subject again for both > groups interest. > > www.apache.org/dyn/closer cgi provides a simple resolution strategy to > attempt to determine the closest mirror available to the client browser. > It then generates an html page via a template that lists the selected > mirror as well as other available mirrors. With Depot, we have a > customized download client that could be extended to manage downloading > from a list of mirrors as well. > > Here are my thoughts on this subject: > > A.) This script is really not that big (90% of it is just parsing the > mirrors file), and the database (a flat text file called mirrors.list) > as well is not very big. While closer.cgi is a neat service for > browsers. Its not exactly helpful for automated clients. Yet, > mirrors.list is an excellent example of metadata that is exposed in a > effective manner such that automated clients can access it. > > http://www.apache.org/mirrors/mirrors.list > > I'm somewhat convinced that a it would be simple to create a client > implementation which accomplished the same functionality as closer.cgi > programatically so that it could be used in terms of resolving a > location to download from when mirrors are available. > > This would be beneficial to the Apache Bandwidth issue in that if a > client such as Depot/DownloadManager managed the same capability as > closer.cgi then: Hmm, it seems to me that infra@ or mirrors@ (is that a list) probably have views on this. (But then, we probably don't want 4 lists on here. :-) I suspect their views would include what you suggest, that distribution might save some nomimal (c.f. artifact sizes) bandwidth savings & give some CPU saving, but it'd be at significant loss of 'control' (of well behaved clients). Central control over this seems the most appealing. Since I doubt the CPU cycles are worth saving (or the script would've been optimised), could we not just change the script to check for some header from the client, and return XML or some structured text, for non-human browsers. [BTW: viewcvs seems to do this nicely, returning the file if non-human and the presentation is human (as browser identifies). regards, Adam