Create, run, and deploy a synchronization node

Updated at:

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

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner, click the 菜单 icon and select Collaboration.

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

    Note

    If you are already on the Asset Processing page, you can skip the step to click Asset Processing.

  4. In the left navigation pane, click the image icon and select Node Mode.

Step 2: Create a node and configure its properties

  1. On the Development Environment tab, click New Node.

  2. In the New Node dialog box, select Synchronization Node as the node type and click OK.

  3. 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.

  4. In the node editor, click the 保存 icon.

  5. 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

  1. 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>12 to transfer only the data where the ID is greater than 12.

    Note

    This 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.

    Note

    This parameter is displayed only when you transfer data from ApsaraDB for RDS to MaxCompute.

  2. 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.

  3. Configure general control parameters.

    Parameter

    Description

    Dependency configuration

    To set dependencies for the synchronization node, turn on the image..png 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.

  4. In the node editor, click the 保存 icon in the upper-left corner.

  5. Click the 运行 icon to run the synchronization node.

    Note

    This dialog box appears only if parameters require configuration after parsing.

  6. View the run results and log. A success status indicates that the node ran successfully.

(Optional) Step 4: Configure periodic scheduling

Note

This section describes how to configure the scheduling cycle and other parameters for the synchronization node in a production environment.

  1. Configure scheduling parameters.

    1. Click the Scheduling Configuration tab on the right and turn on the 开关 switch for periodic scheduling.

    2. 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.

  2. Configure whether to automatically retry the job if a scheduled run fails.

    1. Turn on the 告警配置 switch for Retry on Failure and configure the retry policy.

    2. 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.

  3. Configure the timeout.

    Specify the maximum run time. If the job exceeds this time, the system reports a timeout error and stops the job.

  4. Configure alert monitoring.

    1. Turn on the 告警配置 switch for Alert Monitoring to view the alert settings.

    2. 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.

      Note

      After the node runs, you can view alerts under the Panorama menu. For more information, see View alert messages.

Step 5: Deploy the node task

  1. In the node editor for the development environment, click the image.png icon in the toolbar to deploy the node to the production environment.

    Note

    Alternatively, you can go to the Node Tasks page, find the target task, and click Deploy in the Actions column.

  2. In the confirmation dialog box, click OK.

  3. 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.

  4. 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.