[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
syncrepl and mass deletes
- To: openldap-technical@openldap.org
- Subject: syncrepl and mass deletes
- From: LALOT Dominique <dom.lalot@gmail.com>
- Date: Wed, 23 Mar 2011 14:41:51 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ofoNPucUdPkc/ORy4qOZwNEHQH0/gN5NuKu4AAuztC8=; b=rgF5JUB5KyeNYoAke6JNZFuFhUegAiRAz867NwptAC4dR2t9VSi/rdvPRSPqCvCcZV bmuXJvNAgyWDc05pCeQrwl5cWtHXBYTqvPaxNh9dN8+MtLbT60eDQX6AqyCFR2hyVMkx YWPhP2Q+riIXBJnXTE5ozoAcY4aXaRbh3xxGY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=hW8ts4yCBlfZFPWpmtnZEVOZUlYDdHUjTQ9F1WY8JcTBS+ts78MLEqdFgI8GHWZf31 K9KPRATs9YLZ5g2G3YAbJisqyrwmh5seQGDxaqa19VPnlFKZmUVA+H+JlK80wJLKpOEL UKmXQQz2smpkOVUPtP8gvLdxecCf81ujQXT9k=
Hello,
I am testing the replication feature in a multimaster environment replicating into a single database. As stated before, I added serverid to my providers. I just have two providers for test purpose.
I tested mass updates on a provider, stopped my replica during updates, then start again and it's OK, it updates the entries
If I do the same for mass deletes. I deleted 40000 entries while stopping the consumer. My consumer is still with 30000 undeleted entries. I left the consumer for hours, restarting it twice.
It seems there is no regular compare between consumer or provider in such situation. I'll simplify to test in a single provider setup, to see if it works.
All servers are 2.4.23
consumer side. A script is populating the DIT via slapadd first to create the dc entries.
database bdb
suffix "dc=fr"
serverid 0x40 ldap://ldapmaitre.univ-yy.fr
syncrepl rid=040
provider=ldap://ldapmaitre.univ-yy.fr/
type=refreshAndPersist
searchbase="dc=univ-yy,dc=fr"
retry="60 10 300 +"
scope=sub
filter="(objectClass=*)"
attrs="*,+"
schemachecking=off
bindmethod=simple
serverid 0x20 ldap://anutest.univ-xx.fr
syncrepl rid=020
provider=ldap://anutest.univ-xx.fr/
type=refreshAndPersist
searchbase="dc=univ-xx,dc=fr"
retry="60 10 300 +"
scope=sub
filter="(objectClass=*)"
attrs="*,+"
schemachecking=off
bindmethod=simple
Mar 23 13:29:11 ldaprelay slapd[24319]: @(#) $OpenLDAP: slapd 2.4.23 (Nov 19 2010 17:41:28) $#012#011buildd@allspice:/build/buildd/openldap-2.4.23/debian/build/servers/slapd
Mar 23 13:29:11 ldaprelay slapd[24320]: slapd starting
Mar 23 13:29:11 ldaprelay slapd[24320]: do_syncrep2: rid=040 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
Mar 23 13:29:11 ldaprelay slapd[24320]: do_syncrep2: rid=020 LDAP_RES_INTERMEDIATE - REFRESH_DELETE
root@ldaprelay:/etc/ldap# ldapsearch -x -LLL -s base contextcsn
dn: dc=fr
contextCSN: 20110323101636.221613Z#000000#040#000000
contextCSN: 20110323100346.844382Z#000000#020#000000
Thanks for any hints
Dom
--
Dominique LALOT
Ingénieur Systèmes et Réseaux
http://annuaire.univmed.fr/showuser.php?uid=lalot