Create and manage data preparation tasks
AI-Native Database Service allows you to create data preparation tasks that deliver structured data from a MySQL database to an AnalyticDB for PostgreSQL instance. These tasks provide the data foundation for downstream AI data processing and analytics. This topic describes how to create, monitor, and manage data preparation tasks.
Overview
A data preparation task delivers table data from a source MySQL database to a destination AnalyticDB for PostgreSQL instance. Data preparation tasks support two modes: full data migration and incremental data synchronization. You can use these tasks to build the data foundation required for data analytics and AI applications.
Common scenarios for data preparation tasks include:
-
Delivering structured business data from an operational database to an analytical database for offline analytics and AI processing.
-
Establishing a real-time data synchronization link from MySQL to AnalyticDB for PostgreSQL to support near-real-time analytics.
-
Providing underlying data for knowledge bases, datasets, and other modules in AI-Native Database Service.
Limits
|
Item |
Description |
|
Cross-region data delivery |
Cross-region data delivery is not supported. The source and destination instances must reside in the same region. |
|
Destination table |
You must create destination tables in the AnalyticDB for PostgreSQL instance in advance. Data preparation tasks do not automatically create table schemas. |
|
Source database |
Only MySQL is supported as the source database, including ApsaraDB RDS for MySQL and self-managed MySQL. |
|
Destination database |
Only AnalyticDB for PostgreSQL is supported as the destination database. |
Prerequisites
-
AI-Native Database Service is activated.
-
A source MySQL database instance is available and in the Running state.
-
A destination AnalyticDB for PostgreSQL instance is available, and destination tables are created in the instance.
-
The source and destination instances reside in the same region.
Create a data preparation task
-
Log on to the AI-Native Database Service console.
-
In the left-side navigation pane, in the AI Data Preparation section, click Multimodal Data Preparation.
-
On the Multimodal Data Preparation page, click Create Task.
-
Configure the source information. Set the source database type to MySQL and specify the following parameters:
-
Instance Type: Select an ApsaraDB RDS instance or a self-managed database.
-
Instance: Select the source MySQL instance.
-
Database Account and Database Password: Enter the username and password used to access the source database.
-
-
Configure the destination information. The destination database type is set to AnalyticDB for PostgreSQL by default. Select the destination instance and enter the database account and password.
-
Select the objects to synchronize. In the source database list on the left, select the tables that you want to synchronize and move them to the selected objects list on the right.
NoteMake sure that the destination tables are created in advance. To modify the mapping between source table or column names and destination table or column names, edit the entries in the selected objects list.
-
Select a synchronization mode: Full Data Migration or Full + Incremental Data Synchronization.
-
Verify the configuration and click Submit. Wait for the precheck to complete.
Monitor and manage tasks
After a task is created, you can view the task status and details on the data preparation page.
Task statuses
A data preparation task can be in one of the following statuses:
-
Prechecking: The task is running connectivity and configuration checks.
-
Migrating: The task is performing full data migration.
-
Synchronizing: Full migration is complete and the task has entered the incremental synchronization phase.
-
Completed: The full migration task is complete.
-
Error: An error occurred during task execution. Troubleshoot the issue.
Operations
You can perform the following operations on a task in the task list:
-
View Details: View the task configuration, synchronization progress, and performance metrics.
-
Pause: Pause a running synchronization task. Billing continues while the task is paused.
-
Resume: Resume a paused task. The task resumes synchronization from the checkpoint at which it was paused.
-
Release: Release a data preparation task that is no longer needed. Billing stops after the task is released.
Billing
Data preparation tasks are billed based on task running duration. The following billing rules apply:
-
The billing unit is one hour. Usage of less than one hour is billed as one full hour.
-
Billing starts when a task is created and stops when the task is released.
-
Paused tasks continue to incur charges. To stop billing, release the task.
For detailed pricing information, see the Pricing page of AI-Native Database Service.