Overview

Cloud Data Migration (CDM) on the DGC platform enables batch data migration among homogeneous and heterogeneous data sources. You can migrate date from sources including on-premises and cloud file systems, relational databases, data warehouses, NoSQL, big data, and object storage.

Introduction to CDM

CDM is based on distributed computing and concurrent processing technologies. It helps you migrate massive sets of data stably and efficiently. You can migrate data without downtime and quickly construct the data structure you desire.

Figure 1 CDM application

Functions

  • Table, file, or full DB migration

    Tables or files can be migrated in batches. An entire database can be migrated between homogeneous and heterogeneous databases. A single job can include hundreds of tables.

  • Incremental data migration

    CDM supports incremental migration of files, relational databases, and HBase/CloudTable. It also supports incremental migration implemented through WHERE clauses and macro variables of date and time.

  • Migration in transaction mode

    If a CDM job fails, CDM rolls back the data to a state before the job started and automatically deletes data from the destination table.

  • Field conversion

    CDM supports data conversion, including anonymization, character string operations, and date operations.

  • File encryption

    When files are migrated to a file system, CDM can encrypt files written to cloud storage.

  • MD5 verification

    MD5 verification is supported to check file consistency from end to end and output verification result.

  • Dirty data archiving

    CDM can archive data that was not processed; was filtered out or converted, or not compliant with cleaning rules, to dirty data logs. A threshold for dirty data ratio can be set to determine whether a task was successful.

CDM Restrictions

  1. You cannot modify the flavor of an existing cluster. If you require a flavor with different specifications, create a cluster with your desired flavor.
  2. CDM does not let you control the speed of the migration. Therefore, you should not migrate data during peak hours.
  3. Currently, the network bandwidth of all CDM instances is 1 Gbit/s. The theoretical maximum volume of data that can be transmitted per instance per day is 10 TB. If you have specific requirements regarding the transmission speed, use multiple CDM instances.

    The actual amount of data that can be migrated in a day depends on the data source type, the read and write performance of the source and destination, and the actual available bandwidth. Typically you can migrate as much as 8 TB per day (large file migration to OBS). It is recommended that you test the speed with a small amount of data before starting your migration.

  4. CDM supports incremental file migration, but does not support resumable transfers of individual files.

    For example, if there are three files to be migrated and the second file fails to be migrated due to a network fault, when the migration task is started again, the first file is skipped. The second file, however, cannot be migrated from the point where the fault occurs. The entire file has to be moved again.

  5. During file migration, a single task can include millions of files, but if there are still too many files in the directory to be migrated in a single task, you can split the files into different directories and create multiple tasks.
  6. A single CDM instance can execute 30 tasks at a time (cdm.large), 20 (cdm.medium), or 10 (cdm.small), or, respectively, up to 10,000, 5,000, and 2,000 jobs in the "pending" state.

    In database migration, a job is equivalent to migrating a table. In file migration, multiple files can be migrated in a single job.

  7. You can export links and jobs configured on CDM to a local directory. To ensure password security, CDM does not export the link password of the corresponding data source. Therefore, before importing a job configuration to CDM, you need to manually add the password to the exported JSON file.
  8. Clusters cannot upgrade to a new version automatically. You need to use the job export and import functions to upgrade them.
  9. CDM does not automatically back up user job configurations. You need to export and back up configuration data using the export function.
  10. If a VPC peering connection is configured, the peer VPC subnet may overlap with the CDM management network. As a result, data sources in the peer VPC cannot be accessed. You are advised to use the public network for cross-VPC data migration, or contact the administrator to add specific routes to the VPC peering connection in the CDM background.
  11. The migration job does not support views.
  12. During CDM migration, if the destination is a DWS or NewSQL database, constraints such as the primary key and unique index of the source database cannot be migrated together.

Permissions Configuration for Relational Database Migration

Common minimum permissions required by relational database migration:

  • MySQL: You need to have the read permission on the INFORMATION_SCHEMA database and data tables.
  • Oracle: You need to have the resource role and have the select permissions on the data table in the tablespace.
  • Dameng: You need to have the select any table permission in the schema.
  • DWS: You need to have the schema usage permission and the query permission on the data tables.
  • SQL Server: You need to have the sysadmin permission.
  • PostgreSQL: You need to have the select permission on schema tables in the database.