Creating a DRS Synchronization Task
This section describes how to create a DRS instance and synchronize incremental data from RDS MySQL to Kafka.
Pre-Check
Before creating a task, check the synchronization conditions.
In this example, data is synchronized from RDS MySQL to Kafka. For details, see Precautions.
Procedure
This section describes how to perform incremental synchronization from RDS MySQL to Kafka.
- Log in to the management console.
- Click in the upper left corner of the management console and select EU-Dublin.
- Under the service list, choose Databases > Data Replication Service.
- Choose Data Synchronization Management and click Create Synchronization Task.
- Configure synchronization task parameters.
- Task name
- Select the source database, destination database, and network information.
Select the RDS instance created in Preparing for Source RDS MySQL as the destination database.
- Set Enterprise Project to default.
- Click Next.
The synchronization instance is being created. It takes about 5 to 10 minutes.
- Configure source and destination database information.
- Configure source database information.
- Click Test Connection.
If a successful test message is returned, login to the destination is successful.
- Select the VPC and subnet where the destination database is located, and enter the Kafka IP address and port number.
- Click Test Connection.
If a successful test message is returned, login to the destination is successful.
- Click Next.
- Select the synchronization information, policy, message format, and object, and the format of the message sent to the Kafka.
The following table lists the settings.
Table 1 Sync Settings Type
Setting
Topic Synchronization Policy
Deliver the content to a topic named testTopic.
Synchronize Topic To
Partitions are differentiated by the hash values of the database and table names
Data Format in Kafka
You can select the JSON format. For details, see Kafka Message Format.
Synchronization Object
Select table3_ under db_test.
- Click Next.
- Select a data processing mode. Data synchronization from RDS MySQL to Kafka supports only column-based processing, which provides column-level query and filtering capabilities.
- Click Next and wait for the check results.
- If the check is complete and the check success rate is 100%, click Next.
- After confirming that the synchronization task information is correct, click Next.
Return to the Data Synchronization Management page and check the synchronization task status.
It takes several minutes to complete.
If the status changes to Incremental synchronization, the synchronization task has been started.
- RDS for MySQL supports only incremental synchronization to Kafka. After the task is started, it is in the incremental synchronization state.
- If the created task is a full synchronization task, full synchronization is performed after the task is started. After the synchronization is complete, the task automatically stops.
- If the created task is a full+incremental synchronization task, the task enters the full synchronization state after being started. After the full synchronization is complete, the task enters the incremental synchronization state.
- Incremental synchronization continuously synchronizes incremental data and does not stop automatically.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.