Cloning a cluster

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

  1. Click the name of the cluster you want to manage from the left pane.
  2. Click Services.
  3. Click View Details for the Backup Service.
  4. Click Restore Backup.
  5. 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.

    1. Click Other Location.
    2. Enter the S3 bucket name under S3 Bucket.
    3. Enter your AWS credentials under AWS Key and AWS Secret.
    4. Click Next.
  6. 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.

  7. Under Location select the target cluster for the clone operation.
  8. 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.
  9. 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.


  10. Click Restore Backup.
  11. 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.