Migrate Data to another cluster

The goal of this document is to describe the way how to migrate data from one cluster to another.

Create an Enterprise Cluster

To learn how to create a cluster, see Create an Enterprise Cluster.

Highly recommended creating a cluster with the same configuration, so if your existed cluster contains custom classes, backup or persistence, it makes sense to enable/configure these options for a new cluster as well.

Create WAN Replication

In this tutorial, we are going to use a fantastic Hazelcast feature for data migration which is called WAN Replication

In order to create WAN Replication, you can go to Cluster Detail > Settings > Wan Replication and click Create New Replication

Go to Manage Cluster > Settings

WAN Replication settings

WAN Replication configuration

After setting all these parameters, you can click Next to select and configure consumer cluster.

Part 2 of the WAN Replication configuration

Settings on this screen for consumer cluster are same as publisher cluster except Active/Passive section. If you set consumer cluster as Active, data will be synchronized from/to publisher and consumer. If you set consumer cluster as Passive, data will be sent only from publisher to consumer. Once you configured settings for consumer, you can click Save

Wan Replication is being set up

Within seconds, wan replication will be ready there.

Wan Replication is active

Once it is finished, you can verify it by going to management center Cluster Detail > Management Center > Enable then Management Center > Open Management Center.

Wan Replication data in Management Center

When you connect publish cluster and try to write some data, you will see data will be replicated to consumer cluster.

You can synchronize all data by using Sync button in the WAN replication settings.

Connect to a Cluster

After migration is done, you can connect to a new cluster via different clients, e.g. Java Client

Delete a Cluster

You can delete your old cluster once migration finished and clients connected to a new cluster.

WAN replication must be deleted before cluster deletion