Source DB | Destination DB |
---|---|
|
|
Table 2 lists the objects that can be synchronized in different scenarios. DRS will automatically check the objects you selected before the synchronization.
Type | Precautions |
---|---|
Objects |
|
To start a synchronization task, the source and destination database users must meet the requirements in the following table. Different types of synchronization tasks require different permissions. For details, see Table 3. DRS automatically checks the database account permissions in the pre-check phase and provides handling suggestions.
Type | Incremental Synchronization |
---|---|
Source database user | The CONNECT permission for databases, USAGE permission for schemas, SELECT permission for tables, and the permission to create replication connections |
DRS incremental synchronization consists of three phases: task start, incremental synchronization, and task completion. To ensure smooth synchronization, read the following notes before creating a synchronization task.
Type | Constraints |
---|---|
Starting a task |
|
Incremental synchronization |
|
Stopping a task |
|
Parameter | Description |
---|---|
Task Name | The task name must start with a letter and consist of 4 to 50 characters. It can contain only letters, digits, hyphens (-), and underscores (_). |
Description | The description consists of a maximum of 256 characters and cannot contain special characters !=<>'&"\ |
Parameter | Description |
---|---|
Data Flow | Select Out of the cloud. |
Source DB Engine | Select PostgreSQL. |
Destination DB Engine | Select Kafka. |
Network Type | Public network is used as an example. Available options: Public network and VPN or Direct Connect
|
Source DB Instance | Specifies an RDS PostgreSQL DB instance you have created. |
Synchronization Mode |
|
Specify EIP | This parameter is available when you select Public network for Network Type. Select an EIP to be bound to the DRS instance. DRS will automatically bind the specified EIP to the DRS instance and unbind the EIP after the task is complete. The number of specified EIPs must be the consistent with that of DB instances. |
Parameter | Description |
---|---|
Specifications | DRS instance specifications. Different specifications have different performance upper limits. For details, see Real-Time Synchronization. |
AZ | Select the AZ where you want to create the DRS task. Selecting the one housing the source or destination database can provide better performance. |
Parameter | Description |
---|---|
Enterprise Project | An enterprise project you would like to use to centrally manage your cloud resources and members. Select an enterprise project from the drop-down list. The default project is default. |
Tags |
|
If a task fails to be created, DRS retains the task for three days by default. After three days, the task automatically stops.
Parameter | Description |
---|---|
DB Instance Name | The RDS for PostgreSQL instance selected when you created the migration task. The instance cannot be changed. |
Database Username | The username for accessing the source database. |
Database Password | The password for the database username. |
The username and password of the source database are encrypted and stored in DRS and will be cleared after the task is deleted.
Parameter | Description |
---|---|
IP Address or Domain Name | IP address or domain name of the destination database in the IP address/Domain name:Port format. The port of the destination database. Range: 1 - 65535 You can enter up to 10 groups of IP addresses or domain names of the destination database. Separate multiple values with commas (,). For example: 192.168.0.1:8080,192.168.0.2:8080. |
Method | Available options: PLAINTEXT, SSL, SASL_PLAINTEXT, and SASL_SSL. For details, see Kafka Authentication. |
Parameter | Description |
---|---|
Synchronize DML | Select the DML operations to be synchronized. By default, all DML operations are selected. If you do not select Delete, DELETE statements in the incremental data of the source database will not be synchronized, which may cause a data inconsistency. As a result, there may be a data conflict or the task may fail. |
Source Database Replication Slot Name | You can choose whether to specify the replication slot of the source database. After replication slot is enabled, enter the replication slot name. The name contains 63 characters and cannot start with a digit. Only lowercase letters, digits, and underscores (_) are allowed. |
Topic Synchronization Policy | Topic synchronization policy. You can select A specific topic or Auto-generated topics. |
Topic | Select the topic to be synchronized to the destination database. This parameter is available when the topic is set to A specified topic. |
Topic Name Format | This parameter is available when Topic Synchronization Policy is set to Auto-generated topics. Due to Kafka restrictions, a topic name can contain only ASCII characters, periods (.), underscores (_), and hyphens (-). If a topic name exceeds the limit, the topic fails to be created and the task is abnormal. If a topic name contains a database object name, ensure that the characters in the object name meet the Kafka topic naming requirements. |
Number of Partitions | This parameter is available when Topic Synchronization Policy is set to Auto-generated topics. The number of partitions of a topic. Each topic can have multiple partitions. More partitions can provide higher throughput but consume more resources. Set the number of partitions based on the actual situation of brokers. |
Replication Factor | This parameter is available when Topic Synchronization Policy is set to Auto-generated topics. Number of copies of a topic. Each topic can have multiple copies, and the copies are placed on different brokers in a cluster. The number of copies cannot exceed the number of brokers. Otherwise, the topic fails to be created. |
Synchronize Topic To | The policy for synchronizing topics to the Kafka partitions.
|
Data Format in Kafka | Select the data format to be delivered to Kafka.
For details, see Kafka Message Format. |
Synchronization Object | The left pane displays the source database objects, and the right pane displays the selected objects. DRS supports table- and database-level synchronization. You can select data for synchronization based on your service requirements. NOTE:
|
You can proceed to the next step only when all checks are successful. If there are any items that require confirmation, view and confirm the details first before proceeding to the next step.
Parameter | Description |
---|---|
Start Time | Set Start Time to Start upon task creation or Start at a specified time based on site requirements. NOTE: After a synchronization task is started, the performance of the source and destination databases may be affected. You are advised to start a synchronization task during off-peak hours. |
Send Notifications | This parameter is optional. If the status, latency metric, or data of the migration task is abnormal, DRS will send you a notification. |
SMN Topic | This parameter is available only after you enable Send Notifications and create a topic on the SMN console and add a subscriber. |