Cluster data can be copied from one cluster to another using OpsCenter.
Cloning a cluster using the Backup Service is a simple way to copy the data from one
cluster to another cluster while keeping the clusters separate. Unlike adding
another data center to the cluster, where updates to the data will propagate across
the data centers, a cloned cluster is a completely different cluster that is
isolated from the original cluster. This is useful for development, where you need
to update applications using real data but do not want to touch the production
cluster. You can also use cloning for testing or performance tuning.
Prerequisites
You must have backed up your cluster to an Amazon S3 location in order to clone the
data.
Procedure
-
Click the name of the cluster you want to manage from the left pane.
-
Click Services.
-
Click View Details for the Backup Service.
-
Click Restore Backup.
-
Select the backup that contains the data you want to clone and click
Next.
If the OpsCenter instance does not manage the cluster you want to clone, you
can clone it if the cluster data was backed up to an S3 location from
another OpsCenter instance. Then select the Other
Location tab in Restore from Backup to
enter the S3 information to retrieve the backed up data.
-
Click Other Location.
-
Enter the S3 bucket name under S3 Bucket.
-
Enter your AWS credentials under AWS Key and
AWS Secret.
-
Click Next.
-
Select the tables included in the backup you want to restore. Click the
keyspace name to include all the tables in the keyspace. Click All
Keyspaces to restore all the keyspaces.
To select only specific tables, expand the keyspace name and select the
tables.
-
Under Location select the target cluster for the clone
operation.
-
To remove the existing keyspace data before the data is restored, select
Truncate/delete existing data before restore. This
will completely remove any updated data in the cluster for the keyspaces you are
restoring.
-
To prevent overloading the network, set a maximum transfer rate for the
restore. Select Throttle stream throughput at ____ MB and
set the maximum MB per second.
-
Click Restore Backup.
-
Click Start Restore.
Results
The details and progress of the restore operation will be displayed in a dialog, and
also appear in the Backup Activity of the target cluster. If
you close the progress dialog, track the progress and status of the restore in the
destination cluster's Backup Activity section.