[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Disabling transaction logging for slapadd (2.1.25, bdb)





--On Wednesday, January 28, 2004 6:42 PM +0200 Buchan Milne <bgmilne@obsidian.co.za> wrote:

On Wed, 28 Jan 2004, Quanah Gibson-Mount wrote:



--On Wednesday, January 28, 2004 5:52 PM +0200 Buchan Milne
<bgmilne@obsidian.co.za> wrote:

>> set_flag DB_TXN_NOT_DURABLE

I think this is a BDB 4.2.52 option, and not 4.1.25, but I am not
certain.  The suggested BDB version to run right now is BDB-4.2.52 plus
patch  (4.2.52.1).  You can get the patch from the sleepycat website.


Yup, 4.2.52.1 will be in my next build ...

But, with some tuning options this is performing oK, but I have >2GB of
transaction logs now ...

You can set up a script to delete the unnecessary ones. We run this periodically out of cron:


#!/usr/local/bin/perl
chdir("/var/log/bdb");
@files=`/usr/local/bin/db_archive`;
foreach $file (@files) {
 chomp($file);
 unlink($file);
}


--Quanah


-- Quanah Gibson-Mount Principal Software Developer ITSS/TSS/Computing Systems ITSS/TSS/Infrastructure Operations Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html