Create a real-time task
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
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Collaboration.In the top menu bar, click the
icon, select the target workspace, and then click Asset Processing.In the navigation pane on the left, click the
icon, move the pointer over Real-time Data Synchronization, and click the
icon.In the upper-right corner of the Real-time Data Synchronization page, click Create Task.
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.
Configure the synchronization resources, including the source and destination.
In the Source Configuration section, select the data source, topic, message format, and template.
NoteClick 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.
In the Destination Configuration section, select the destination and data object.
NoteIf 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.
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.
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.
ImportantThe current default values are recommended. Set these values carefully as needed.
Write latency threshold
Offset latency threshold
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.
After you complete the configuration, click the
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 |
|
What to do next
After you create a real-time task, you must publish it. For more information, see Publish a real-time task.