From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: .git/info/refs Date: Thu, 01 Feb 2007 08:56:00 -0800 Message-ID: <45C21BA0.4080700@zytor.com> References: <45B70D06.3050506@zytor.com> <45B7818F.6020805@zytor.com> <7vireuaj9d.fsf@assigned-by-dhcp.cox.net> <45B92332.5060206@zytor.com> <7v3b5yai6c.fsf@assigned-by-dhcp.cox.net> <45B928AD.50508@zytor.com> <45BBCD27.5050408@zytor.com> <45C2124C.5070308@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Thu Feb 01 17:56:33 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCfEM-0005QI-L6 for gcvg-git@gmane.org; Thu, 01 Feb 2007 17:56:14 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422695AbXBAQ4L (ORCPT ); Thu, 1 Feb 2007 11:56:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422709AbXBAQ4L (ORCPT ); Thu, 1 Feb 2007 11:56:11 -0500 Received: from terminus.zytor.com ([192.83.249.54]:46832 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422695AbXBAQ4K (ORCPT ); Thu, 1 Feb 2007 11:56:10 -0500 Received: from [172.27.0.16] (c-67-180-238-27.hsd1.ca.comcast.net [67.180.238.27]) (authenticated bits=0) by terminus.zytor.com (8.13.8/8.13.7) with ESMTP id l11Gu0AS014103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Feb 2007 08:56:02 -0800 User-Agent: Thunderbird 1.5.0.9 (X11/20061219) In-Reply-To: X-Virus-Scanned: ClamAV 0.88.7/2511/Thu Feb 1 06:55:18 2007 on terminus.zytor.com X-Virus-Status: Clean X-Spam-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00, DATE_IN_FUTURE_96_XX,RCVD_IN_SORBS_DUL autolearn=no version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on terminus.zytor.com Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin wrote: > > Sorry, I should have been clearer. Plan: > > 1. echo "Generating" > /htdocs/git/index.html > 2. edit crontab to do this every minute: > 2.1 gitweb is called directly_, to generate /htdocs/git/index.html.new > 2.2 /htdocs/git/index.html.new is _moved_ into /htdocs/git/index.html, > overwriting the existing one. > > Yes, there could be two instances of this task concurrently. No, it does > not matter. > Yes, it does matter, because it drives the load up further. If you start having this going on in overlapping instances, then you're soon on the downhill slope of a cascading failure. >> We can pre-generate the page before the first hit, but that's not a >> replacement for update-time caching. > > It was only meant as a quick fix for the horrible workload. And we have already experimented with it. It unfortunately doesn't help much, it only makes matters worse. -hpa