This topic describes the Copy Data view.
Use the Copy Data view to seamlessly transfer region data between two connected clusters. This functionality is especially useful in critical situations, such as:
-
Disaster Recovery: In the event of a cluster failure, use the Copy Data view to restore the failed site by importing data from another operational site, enabling minimal downtime and data loss.
-
New Site Integration: When you add a new cluster to a Tanzu GemFire system, use the Copy Data view to complete the initial loading of data from an existing WAN site. This ensures a streamlined setup process and consistency across the system.
Prerequisites
The following prerequisites must be in place to copy data from one cluster to another:
-
Region with Data: The source cluster must have a region that contains the data you intend to transfer.
-
Gateway Sender Configuration: The source cluster needs a Gateway Sender configured for the region holding the data. This component handles the transmission of data to the target cluster.
-
Gateway Receiver Configuration: The target cluster must have a Gateway Receiver and a region with the same name as the one on the source cluster. This ensures the incoming data is correctly received and mapped.
-
PDX Serialization: If the region’s data is PDX serialized, ensure that the relevant classes are on the classpath of both clusters. This allows the data to be properly deserialized on the target cluster.
Copy data between clusters
To transfer data from one GemFire cluster to another, follow these steps:
-
Select the Source Cluster: From the Select Cluster dropdown, choose the cluster to copy data from.
-
Choose the Region: The Regions table populates with the regions available on the selected cluster. Choose the region whose data you want to copy.
-
Check Gateway Senders: When you select a region, a table with the associated Gateway Senders is displayed. If no Gateway Senders are configured for the region, a message indicates “No Gateway Senders Configured for Selected Region.” In this case, you must configure a Gateway Sender for the region before proceeding.
-
Select the Destination Cluster: Choose the appropriate Sender(s) that correspond to the destination cluster(s).
-
Optional - Set Maximum Rate: Set the maximum copy rate in entries per second. For parallel senders, this rate limit applies individually to each server hosting the region being copied.
-
Optional - Set Batch Size: Specify the batch size, in the number of entries to be used during the copy process.
-
Initiate the Copy: Click Start Copy to begin the data transfer.
During the copy process, you can cancel the operation at any time by clicking the Cancel button.
When the copy is complete, a summary displays the number of entries that were successfully copied. If a parallel sender was used, the summary shows the number of entries sent per sender, giving you a clear overview of the data transfer results.
Content feedback and comments