Re: Slow replication in mirrormode

Quanah Gibson-Mount <[email protected]>
Newsgroups gmane.network.openldap.general
Message-ID <737DE5DF8670D1F6505C65A0@[192.168.1.199]>
--On Thursday, October 29, 2009 5:02 PM +0100 Peter Mogensen <[email protected]> 
wrote:

> I've moved to new (FAST*) hardware and I was testing how long it took for
> a empty mirrormode server to catch up with the other one. (like after a
> complete failure of one of the nodes)
>
>
> I'm using a database where id2entry.bdb is ~6.6Gb. and it's taking
> surprisingly long time.
> After 18 hours it has gotten around 1/4 of the way.
>
> I'm wondering if I could speed it up by loading an LDIF backup on the
> empty server before I start it.


Yep.  This is the recommended method for large databases.

> Are there anything special I should take into account, like regarding
> entryCSN and options to slapdadd when I load the backup?

You should make sure and use the -q flag, and make sure you have a properly 
configured DB_CONFIG file that will hold the entire DB (not just the 
id2entry.bdb file size).  In addition, if you go over 8GB in size, you'll 
likely want to use a shared memory key instead of an on disk cache.

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.