Enable Replication on an existing instance

This page describes how to enable Replication for the first time on an existing Cloud Data Fusion instance.

Before you begin

If your instance uses Cloud Data Fusion version 6.2.3, upgrade your instance to a supported version:

  1. Go to the instance details:

    1. In the Google Cloud console, go to the Cloud Data Fusion page.

    2. Click Instances, and then click the instance's name to go to the Instance details page.

      Go to Instances

  2. Click Upgrade > a version number > Upgrade.

For more information, see Upgrading instances and pipelines.

Enable Replication

Console

  1. Go to the instance details:

    1. In the Google Cloud console, go to the Cloud Data Fusion page.

    2. Click Instances, and then click the instance's name to go to the Instance details page.

      Go to Instances

  2. Click Add accelerators.

  3. Click Replication.

  4. Click Save.

cURL

  1. Enable the Replication accelerator in your instance:

    curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        -H "Content-Type: application/json" \
        https://datafusion.googleapis.com/v1/projects/PROJECT_NAME/locations/LOCATION/instances/INSTANCE_NAME?updateMask=accelerators \
        -X PATCH \
        -d '{ "accelerators":[{"accelerator_type":"CDC", "state":"ENABLED"}]} '
    

    This sample command shows how to include labels that are already applied to an instance:

    curl -H "Authorization: Bearer $(gcloud auth print-access-token)" \
        -H "Content-Type: application/json" \
        https://datafusion.googleapis.com/v1/projects/PROJECT_NAME/locations/LOCATION/instances/INSTANCE_NAME?updateMask=accelerators \
        -X PATCH \
        -d '{ "accelerators":[{"accelerator_type":"CDC", "state":"ENABLED"}], "labels":{"KEY_1":"VALUE_1","KEY_2":"VALUE_2"}}'
    

    Replace the following:

    • PROJECT_NAME: the Google Cloud project name
    • LOCATION: the location—for example, us-east1
    • INSTANCE_NAME: the Cloud Data Fusion instance name
    • KEY_1 and VALUE_1, etc.: keys and values of your labels
  2. Optional: To verify the change was successful, click System Admin. Delta Assessor appears in the list of services.

    The Replication tile appears on the Cloud Data Fusion home page.

  3. Click System Admin to check the status of the Delta Assessor service. When the status is green, you can create replication jobs.

What's next