Create, run, and deploy a synchronization node
A synchronization node transfers data between different cloud resources. This topic describes how to create, run, and deploy a synchronization node.
Procedure
Step 1: Go to the node task settings page
Log on to the Data Resource Platform console.
In the upper-left corner, click the
icon and select Collaboration.In the top menu bar, click the
icon, select the target workspace, and then click Asset Processing.NoteIf you are already on the Asset Processing page, you can skip the step to click Asset Processing.
In the left navigation pane, click the
icon and select Node Mode.
Step 2: Create a node and configure its properties
On the Development Environment tab, click New Node.
In the New Node dialog box, select Synchronization Node as the node type and click OK.
On the Node Properties tab on the right side of the node editor, specify the node identifier, node name, and description.
Parameter
Description
Node name
A custom name for the node.
Node identifier
A unique identifier for the node within the workspace.
Node Description
A custom description for the node.
In the node editor, click the
icon.In the Confirm Node Information dialog box, verify that the node name, node identifier, and node directory are correct, and then click Confirm.
Step 3: Configure runtime settings and run the node
Click the Runtime Configuration tab on the right and configure the synchronization resources.
Parameter
Description
Source configuration
Development data source
The source data source type and instance in the development environment.
Logical table
The data format of the input table, defined by a data model. Select a logical table from the drop-down list to specify the data structure of the source table.
When you select a data table, ensure that its data model matches the output data model of the upstream node. You can specify a custom physical table name.
Select an asterisk (*) for tables without a predefined data model. You must then select an existing physical table.
Development data table
The physical source table in the development environment. Select a table from the drop-down list.
Production data source
The data source of the physical source table in the production environment.
Production data table
The physical source table in the production environment. Select a table from the drop-down list.
Synchronization mode
If you select Full, the node performs a full synchronization that overwrites all data.
If you select Incremental, the node performs an incremental synchronization.
Incremental field
Required when Incremental synchronization mode is selected. This field is used to identify new data.
Custom condition
A filter condition. For example, enter
ID>12to transfer only the data where the ID is greater than 12.NoteThis parameter is displayed only when you transfer data from ApsaraDB for RDS to MaxCompute.
Destination configuration
Development destination
The destination data source type and instance in the development environment.
Logical table
The data format of the output table, defined by a data model. Select a logical table from the drop-down list to specify the data structure of the destination table.
When you select a data table, ensure that its data model matches the input model of the downstream node. You can specify a custom physical table name.
Select an asterisk (*) for tables without a predefined data model. You must then select an existing physical table.
Development data table
The physical destination table in the development environment. Select a table from the drop-down list.
Production destination
The data source of the physical destination table in the production environment.
Production data table
The physical destination table used in the production environment.
Partition field
If the selected physical table is a partitioned table, the partition fields are automatically detected. Specify the required partition values.
Write rule
Clear existing data before writing: Clears all data from the destination table before the write operation.
Keep existing data: Appends new data to the destination table.
NoteThis parameter is displayed only when you transfer data from ApsaraDB for RDS to MaxCompute.
Configure the field mapping.
Option
Description
Same-name mapping
Click Same-name Mapping, and data from the source table is transferred to the fields with the same names in the destination table.
Position-based mapping
Click Same-name Mapping to map fields with the same name between the source and destination tables.
Clear mapping
Clears the configured field mappings.
Configure general control parameters.
Parameter
Description
Dependency configuration
To set dependencies for the synchronization node, turn on the
switch, and then click Add Dependency Node to configure the dependent node.Workspace: The workspace to which the dependent node belongs.
Node Name: The name of the dependent node.
Action: Allows you to delete the dependency if it is no longer needed.
Schema change
When the Enable Detection checkbox is selected, the table structure of the data source is checked daily. If a change in the table structure is detected, an exception notification is sent. You can view the exception information in Operations Center - Panorama.
Development resource group
The resource group used for testing. You can select one of your own resource groups.
Production resource group
The resource group used for the production environment. You can select one of your own resource groups.
Resource specification
vCPU (cores)
The number of vCPU cores to allocate to the node.
Memory (MB)
The amount of memory in megabytes (MB) to allocate to the node.
Rate
Bytes/s
The maximum number of bytes transferred per second per channel.
Records/s
The maximum number of records transferred per second per channel.
In the node editor, click the
icon in the upper-left corner.Click the
icon to run the synchronization node.NoteThis dialog box appears only if parameters require configuration after parsing.
View the run results and log. A
successstatus indicates that the node ran successfully.
(Optional) Step 4: Configure periodic scheduling
This section describes how to configure the scheduling cycle and other parameters for the synchronization node in a production environment.
Configure scheduling parameters.
Click the Scheduling Configuration tab on the right and turn on the
switch for periodic scheduling.Configure the scheduling parameters as described in the following table.
Parameter
Description
Periodic scheduling
Depend on the previous scheduling cycle of this node
If selected, the current scheduled run starts only after the previous run for this node is complete.
Effective date
The period during which the node is automatically scheduled to run. You can specify a custom start and end time.
You can select today's date or a future date.
To view results for past dates, you can backfill data. For more information, see Create a data backfill plan.
Scheduling cycle
Supports scheduling by month, week, day, hour, or minute.
Specific time
The custom start and end time, based on the selected cycle.
Configure whether to automatically retry the job if a scheduled run fails.
Turn on the
switch for Retry on Failure and configure the retry policy.Set the number of retries and the retry interval.
Parameter
Description
Number of retries
The maximum number of times the job will be rerun after a failure.
Retry interval
The time to wait between retry attempts.
Configure the timeout.
Specify the maximum run time. If the job exceeds this time, the system reports a timeout error and stops the job.
Configure alert monitoring.
Turn on the
switch for Alert Monitoring to view the alert settings.Before you configure alerts, ensure that monitoring is set up. Select an owner, an alert group, and an alert level.
Parameter
Description
Monitoring configuration
Owner
The default is the logon account for the current workspace. After a person in charge is set in Panorama, you can select one from the drop-down list. For more information, see Create a member.
Alert group
Select an existing alert group from the drop-down list. For more information, see Create an alert group.
Alert level
Select the severity level for the alert from the drop-down list.
NoteAfter the node runs, you can view alerts under the Panorama menu. For more information, see View alert messages.
Step 5: Deploy the node task
In the node editor for the development environment, click the
icon in the toolbar to deploy the node to the production environment.NoteAlternatively, you can go to the Node Tasks page, find the target task, and click Deploy in the Actions column.
In the confirmation dialog box, click OK.
In the Physical Pre-analysis dialog box, verify the logical tables to be materialized, and then click OK. After the process completes, the node is deployed to the production environment.
Click the Production Environment tab. On the Production Environment tab, click View in the Actions column of the target node. You can view the generated production environment node tasks.