thomaswilliampritchard@gmail.com schrieb am 12.12.2022 um 16:47 in Nachricht
20221212154750.5262.89868@hypatia.openldap.org:
Hello,
Under typical circumstances we run a config database and have a single application database for ldap data. We run consumers replicating from providers where they replicate the entire application database. We detect delayed replication by querying consumer CSNs and comparing them to the provider CSNs to determine if any consumers have delayed replication through a health check script that executes every few minutes.
For one particular use case we replicate a subset of the application database, but our replication check cannot work for this use case. It appears because we're not replicating the entire database we do not copy the provider CSNs over to the consumers (which live at the base level, and we're copying a DIT below that level) and therefore I cannot ask the consumers what their 'latest csn' is since they do not seem to have one.
Is there any recommended way I can check that the consumer replication is functioning properly when replicating a subset of the provider database?
My guess is to compute the maximum of all replicated EntryCSNs on the provider side and compare them with the maximum of the same entries on the consumer side. Or have a test entry you "touch" and compare the EntryCSN of that test entry.
Thanks for the consideration. Tom