From 8e36a0a3993e0185d9e177a65eee2a1513ed023f Mon Sep 17 00:00:00 2001 From: Serge Bishyr Date: Wed, 3 Apr 2024 11:23:52 +0300 Subject: [PATCH] Add Delta WanSync docs [CN-476] (#183) * Add Delta WanSync docs [CN-476] * Update docs/modules/ROOT/pages/wan-sync.adoc Co-authored-by: rebekah-lawrence <142301480+rebekah-lawrence@users.noreply.github.com> --------- Co-authored-by: rebekah-lawrence <142301480+rebekah-lawrence@users.noreply.github.com> --- .../modules/ROOT/examples/wan-sync-delta.yaml | 27 +++++++++++++++++++ docs/modules/ROOT/pages/wan-sync.adoc | 15 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 docs/modules/ROOT/examples/wan-sync-delta.yaml diff --git a/docs/modules/ROOT/examples/wan-sync-delta.yaml b/docs/modules/ROOT/examples/wan-sync-delta.yaml new file mode 100644 index 00000000..0ea60bab --- /dev/null +++ b/docs/modules/ROOT/examples/wan-sync-delta.yaml @@ -0,0 +1,27 @@ +apiVersion: hazelcast.com/v1alpha1 +kind: Map +metadata: + name: map-sample +spec: + hazelcastResourceName: hazelcast + merkleTree: + depth: 10 +--- +apiVersion: hazelcast.com/v1alpha1 +kind: WanReplication +metadata: + name: wan-replication-sample +spec: + resources: + - name: map-sample + kind: Map + targetClusterName: dev + endpoints: "35.192.33.252" + synConsistencyCheckStrategy: "MERKLE_TREES" +--- +apiVersion: hazelcast.com/v1alpha1 +kind: WanSync +metadata: + name: wansync-sample +spec: + wanReplicationResourceName: wan-replication-sample diff --git a/docs/modules/ROOT/pages/wan-sync.adoc b/docs/modules/ROOT/pages/wan-sync.adoc index c7ec59c8..e14d5671 100644 --- a/docs/modules/ROOT/pages/wan-sync.adoc +++ b/docs/modules/ROOT/pages/wan-sync.adoc @@ -26,6 +26,21 @@ To create `WanSync` resource you must use the existing `WanReplication` CR. This include::ROOT:example$/wan-sync-full.yaml[] ---- +== Configuring Delta WanSync + +To configure xref:hazelcast:wan:advanced-features#delta-wan-synchronization.adoc[Delta WAN Sync] for the Hazelcast cluster, do the following: + +* Configure Merkle Tree for the `Map` resource. +* Set `synConsistencyCheckStrategy` to `MERKLE_TREES` in the `WanReplication` resource. +* Create the `WanSync` resource. The created `WanSync` automatically uses Delta WAN Synchronization. + +.Example of Delta WanSync +[source,yaml,subs="attributes+"] +---- +include::ROOT:example$/wan-sync-delta.yaml[] +---- + + == Checking the Status of a WAN Sync After creating the `WanSync` resource, run the following command to see the WAN syncronization status: