On Sun, Aug 04, 2024 at 09:01:23PM +0200, Erik de Waard wrote:
Curious what's the rationale of using syncrepl over delta-syncrepl?
We have 40 consumers (5GB data (and using syncrepl) no problems, but was interested in switching.. thought it might be more efficient.
Are you talking single-provider or multi-provider (providers are servers that accept write requests)? Single provider is perfectly safe and you can stop reading here. For multi-provider (MPR):
Delta-syncrepl cannot always operate correctly in the face of certain types of conflicting modifications (when you have clients writing incompatible changes to servers A and B at the *same* time). The LDAP data model is just too rich to allow operation-level multi-provider replication in arbitrary circumstances.
You can usually use MPR deltasync if can always guarantee that either: - all writes go to the same provider (until the provider is retired e.g. due to failure), you're back to single-provider, but ensure good monitoring - concurrent writes can be replicated in any order (especially increment, modrdn operations cannot, also see ITS#9341 and related)
Ensuring this in real-life environments turns out more challenging than it seems as people do not seem to have enough control over their clients. The better knowledge of your environment you have (especially through monitoring), the more confidence you'll have whether you can do that.
Regards,