Create a real-time task

Updated at:

Data synchronization lets you create real-time sync tasks. You can start multiple cloud migration tasks with a single click, which automatically creates tables for full data synchronization. This topic describes how to create a real-time task using an example of synchronizing data from a Kafka data source to a DataHub destination.

Prerequisites

  • A corresponding data source must exist. For more information, see Create a data source.

  • Metadata is synchronized for the source and destination data sources. For more information, see Synchronize metadata.

  • A folder for real-time sync tasks is added. For more information, see Add a task folder.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select the target workspace, and then click Asset Processing.

  4. In the navigation pane on the left, click the 数据同步 icon, move the pointer over Real-time Data Synchronization, and click the image icon.

  5. In the upper-right corner of the Real-time Data Synchronization page, click Create Task.

  6. Configure the basic information for the task. At the top of the Real-time Data Synchronization Management page, enter a task name, category, and description.

  7. Configure the synchronization resources, including the source and destination.

    1. In the Source Configuration section, select the data source, topic, message format, and template.

      Note
      • Click View Supported Sync Ingest Endpoints to view the supported sources and destinations for real-time sync ingest endpoints.

      • In the data source drop-down list, click Create Data Source to create a cloud computing resource in the panel that appears.

    2. In the Destination Configuration section, select the destination and data object.

      Note

      If no destination table corresponds to the source data object, select Create Destination Table from the data object drop-down list to create a new data object in the destination.

  8. Configure field mapping. In the Field Mapping section, the system maps fields with the same name by default. You can select same-row mapping or drag lines to customize the field mapping as needed.

  9. Configure general controls.

    Parameter

    Description

    Table schema evolution

    Select whether to enable schema evolution detection. If enabled, the system checks the source table schema daily. If a schema change is detected, an alert is pushed. You can view the alert details in Service Monitoring - DataQ - Overwatch.

    Resource group

    Select a resource group.

    Resource specifications

    Set the CPU cores (default: 2) and memory (default: 1024 MB) required for the task instance to run.

    Read latency threshold

    If a latency threshold is exceeded, the system sends an alert and marks the task as abnormal in the Task Hub.

    Important

    The current default values are recommended. Set these values carefully as needed.

    Write latency threshold

    Offset latency threshold

  10. On the right side of the page, click Scheduling Settings and configure task scheduling.

    Parameter

    Description

    Monitoring settings

    If enabled, published sync tasks are automatically pushed to Monitoring Job Management in Service Monitoring. This setting is enabled by default.

  11. After you complete the configuration, click the image.png icon in the upper-left corner of the Offline Data Synchronization Management page.

    A message appears, indicating that the task has been created.

Related operations

Operation

Description

View a real-time task

In the Operations column of the target real-time task, click View to view the task details.

Modify a real-time task

In the Operations column of the target real-time task, click Modify to modify the task.

Delete a real-time task

  • Single deletion: In the Operations column of the target real-time task, click the 1 icon and select Delete to delete the task.

  • Batch deletion: On the Real-time Data Synchronization page, select the tasks to delete and click Batch Delete in the lower-left corner of the page.

What to do next

After you create a real-time task, you must publish it. For more information, see Publish a real-time task.