Re: .git/info/refs

From: H. Peter Anvin <hpa@zytor.com>
Date: 2007-02-02 03:56:00
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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Feb 02 03:56:43 2007

This archive was generated by hypermail 2.1.8 : 2007-02-02 04:00:57 EST