Dan Falconer wrote:
> On Wednesday 07 February 2007 1:00 pm, Mark Stosberg wrote:
>> Here's a report and a question on log rotation using the altperl tools,
>> on FreeBSD.
>>
> [ --xxxx-- snip --xxxx--]
>> So I tried the "APACHE_ROTATOR" method, which the altperl tools have
>> built-in support for.
>>
>> That started creating new log files every 10 seconds, which also seemed
>> like a bad idea! I created this patch to slon-tools.pm to only create
>> one log file per day:
> [ --xxxx-- snip --xxxx--]
>> Even then, doesn't that leave me with a pruning job to do? I don't see
>> the value of including the time stamp in the log file name. That just
>> seems to complicate log file rotation and pruning, and is non-standard
>> from what I've seen.
> 
>       I encountered this in Slony 1.2.6 as well: in 1.1.0, there was a 
> configuration parameter, "$ROTATE_TIME", which was fed to the apache rotator 
> instead of the arbitrary "10M".  Ours was set to 86400 (every 24 hours).  I 
> was assuming it was an oops, but I removed the APACHE_ROTATOR variable out of 
> my configuration files so it wouldn't even try to rotate them... which of 
> course means I have to manually restart slony every once in a while to avoid 
> running out of space. 

Does it make more sense then to prune out the timestamp stuff out of the
APACHE_ROTATOR line, and add the "86400" value back in?
Then, would it still be necessary to purge logs every so often?

  Mark

_______________________________________________
Slony1-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/slony1-general

Reply via email to