Creating a DRS Synchronization Task
This section describes how to create a DRS instance and synchronize incremental data from RDS for MySQL to Kafka.
Pre-Check
Before creating a task, check the synchronization conditions.
In this example, data is synchronized from RDS for MySQL to Kafka. For details, see Precautions.
Procedure
- Log in to the management console.
- Click in the upper left corner of the management console and select AP-Singapore.
- 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 for MySQL as the source database.
- Set Enterprise Project to default.
- Click Create Now.
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, the database is connected.
- 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, the database is connected.
- 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 for 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, the synchronization task has been started.
- In this example, Synchronization Mode is set to Incremental for the task from RDS for MySQL to Kafka. After the task is started, the status is Incremental.
- 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.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot