I have a server and slave setup with syncrepl, openldap 2.3.34
Here is my syncrepl stanza on the slave:
syncrepl rid=1 provider=ldap://ldap1.sample.edu.au:389 starttls=yes type=refreshAndPersist interval=00:00:01:00 retry=1,2,3,4,5,+ searchbase="dc=sample,dc=edu,dc=au" filter="(objectClass=*)" scope=sub attrs="*" schemachecking=off updatedn "cn=Replica,dc=sample,dc=edu,dc=au" bindmethod=simple binddn="cn=SyncUser,dc=sample,dc=edu,dc=au" credentials="secret"
If I do only a few updates, the sync seems quite fast.
If I run a script to make about 60,000 modifications on the master, this takes about 20 minutes to run. The slave starts updating immediately, however it soon falls behind. It takes over an hour, since the last change to the master, for the slave to be in sync.
Is this expected behaviour?
On Fri, Apr 27, 2007 at 11:59:14AM +1000, Norman Gaywood wrote:
I have a server and slave setup with syncrepl, openldap 2.3.34
If I run a script to make about 60,000 modifications on the master, this takes about 20 minutes to run. The slave starts updating immediately, however it soon falls behind. It takes over an hour, since the last change to the master, for the slave to be in sync.
Is this expected behaviour?
To answer my own question, it seems that yes, this is what others are experiencing. I note this post from Quanah Gibson-Mount:
http://www.openldap.org/lists/openldap-devel/200510/msg00014.html
where he mentions the time taken for the slaves to receive updates.
It seems that in some scenarios, delta-syncrepl may be a better choice for replication.
There is a description on how to setup delta-syncrepl here:
http://www.connexitor.com/forums/viewtopic.php?t=3
I'm about to try this.
Norman Gaywood wrote:
[...]
It seems that in some scenarios, delta-syncrepl may be a better choice for replication.
There is a description on how to setup delta-syncrepl here:
http://www.connexitor.com/forums/viewtopic.php?t=3
I'm about to try this.
For those of you looking for more of an explanation of delta-syncrepl than appeared on the page, I just put one up there.
http://www.connexitor.com/forums/viewtopic.php?t=3
Cheers,
Matthew Hardin Symas Corporation Packaged, certified, and supported LDAP solutions powered by OpenLDAP: http://www.symas.com
openldap-software@openldap.org