Skip to content

Commit

Permalink
Add Delta WanSync docs [CN-476] (#183)
Browse files Browse the repository at this point in the history
* Add Delta WanSync docs [CN-476]

* Update docs/modules/ROOT/pages/wan-sync.adoc

Co-authored-by: rebekah-lawrence <[email protected]>

---------

Co-authored-by: rebekah-lawrence <[email protected]>
  • Loading branch information
SeriyBg and rebekah-lawrence authored Apr 3, 2024
1 parent fa14c49 commit 8e36a0a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/modules/ROOT/examples/wan-sync-delta.yaml
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions docs/modules/ROOT/pages/wan-sync.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8e36a0a

Please sign in to comment.