Re: syncrepl failure over time

Quanah Gibson-Mount <[email protected]>
Newsgroups gmane.network.openldap.general
Message-ID <768B0A3EF9FFFF3CE9C0D5B3@[192.168.1.2]>
--On Wednesday, March 10, 2010 4:06 PM -0500 Aaron Bennett 
<[email protected]> wrote:

> Hi,
>
> openldap-2.3.43
> db4-4.3.29
> CentOS 5.3
>
> We're observing that syncrepl with refreshandpersist is failing at some
> point after an ldap restart.  I've written a script to try to figure out
> exactly when, but it's sometime within 24 hours.
>
> A slapd restart on the consumer always picks up any pending changes.
>
> Here's our configuration:
>
> syncrepl provider:
> database        bdb
> overlay ppolicy
> ppolicy_default "cn=default,ou=policies,dc=clarku,dc=edu"
># readonly   on
> overlay syncprov
> suffix          "dc=clarku,dc=edu"
> rootdn          "cn=Manager,ou=Services,dc=clarku,dc=edu"
> rootpw          --snip--
> directory       /var/lib/ldap
> checkpoint  5120 60
> cachesize 50000
> idlcachesize 150000
> dbconfig set_cachesize 0 524288000 1
> dbconfig set_lg_regionmax 262144
> dbconfig set_lg_bsize 2097152
> dbconfig set_flags DB_LOG_AUTOREMOVE
>
> sizelimit 30
> conn_max_pending 400
> concurrency 25
> threads 25
> limits dn="cn=Replicator,ou=Services,dc=clarku,dc=edu" size=none
>
> syncrepl consumer:
> database        bdb
> overlay ppolicy
> ppolicy_default "cn=default,ou=policies,dc=clarku,dc=edu"
># readonly   on
> suffix          "dc=clarku,dc=edu"
> rootdn          "cn=Manager,ou=Services,dc=clarku,dc=edu"
> rootpw          --snip--
> directory       /var/lib/ldap
> checkpoint  5120 60
> cachesize 50000
> idlcachesize 150000
> dbconfig set_cachesize 0 524288000 1
> dbconfig set_lg_regionmax 262144
> dbconfig set_lg_bsize 2097152
> dbconfig set_flags DB_LOG_AUTOREMOVE
>
> syncrepl rid=001
>         provider=ldap://nyx.clarku.edu
>         type=refreshandpersist
>         searchbase="dc=clarku,dc=edu"
>         scope=sub
>         retry= 30 10 120 +

This retry line should be quoted I'd think.

In any case, use delta-syncrepl with 2.3 if you want it to work.

--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.