Configuring WAN Replication
WAN Replication allows you to keep Hazelcast clusters in sync across multiple sites or cloud deployments. In Hazelcast Platform Operator, you can create a
WanReplication resource to replicate a map from a source to a target Hazelcast cluster.
See WAN replication for more detailed information about the configuration and behavior of WAN replication in Hazelcast.
Before you create and configure a
WanReplication resource, you need to create the following:
Mapresource for the source Hazelcast cluster.
A target Hazelcast cluster that is accessible from the source cluster.
You can use the following configuration options in your
WanReplication resource. For more detailed information, see the API Reference.
The name of the custom
The name of the Hazelcast cluster that is the target of replication.
A comma-separated list of the addresses of the Hazelcast members in the target cluster.
The configuration of the WAN events queue, which includes two related parameters:
How WAN replication events are batched.
Configuration of the acknowledgement sent after a batch of replication events is received by the target cluster:
WanReplication resource creates the WAN replication configuration for the
Map resources on the source Hazelcast cluster.
After creating the
WanReplication resource, run the following command to find out the WAN replication status:
kubectl get wanreplication wanreplication-sample -o wide
The returned status message will look something like this:
NAME STATUS MESSAGE wanreplication-sample Success
You can also monitor the status of the WAN replications in Management Center.