opensearch-project / cross-cluster-replication

Synchronize your data across multiple clusters for lower latencies and higher availability
https://opensearch.org/docs/latest/replication-plugin/index/
Apache License 2.0
48 stars 58 forks source link

[Discuss] Choice of Replication Model for Full Cluster Replication #559

Closed ankitkala closed 1 year ago

ankitkala commented 2 years ago

This issue to discuss the replication model to be used for full cluster replication. As of now, there are 3 modes of replication that will be supported for local replication between primary and replica shards:

Open Questions:

ankitkala commented 2 years ago

Logical Replication: Pros:

Cons:


Segment Replication: Pros:

Cons:


Segment Replication with Remote Store: Pros:

Cons:

ankitkala commented 2 years ago

Why support only one combination?

Out of all 3 combinations, we expect the Segment Replication with remote store to perform the best(we'll need to publish the benchmark results after the POC).

Here are the pros ans cons of supporting only this combination: Pros:

Cons:

PS: Though we build only one combination, design should still be extensible to enable other replication models in future.