[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH]: Automatic log file removal

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-02-04 20:48:24 CET

On Mon, Feb 04, 2002 at 12:02:44PM -0500, Daniel Berlin wrote:
> Of course, I really meant this patch, instead, which uses the apr_thread
> functions. :)

I don't believe the server should be doing this, and for a couple reasons:

1) threads are not always available
2) there is potentially more work than this since Apache can open the FS
   multiple times (from different processes); we'd want to ensure there is
   only one "log killer" running for any repository
3) Apache opens/closes the FS on each request; this thread would barely get
   started before it died; even worse, it would introduce context switching
   on every request, when we opened the repos
4) people might want to *keep* those logs; they can be used to replay the
   database back to a fixed point, or they can be shipped off to another
   machine to replicate the database (thanks to Kirby for these ideas)

I'm perfectly happy to put a log-killer.sh script into /trunk/tools that
people can run (feed it a list of repositories to keep clean).
Administrators can use that script if they choose.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:04 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.