create user 'account' IDENTIFIED BY 'password';grant SELECT, REPLICATION CLIENT,REPLICATION SLAVE,PROCESS on *.* to 'account'@'%';flush privileges;
Operation Type | Supported SQL Operations |
DML | INSERT,UPDATE,DELETE |
DDL | CREATE DATABASE,DROP DATABASE,CREATE TABLE,ALTER TABLE,DROP TABLE,RENAME TABLE |
Parameter | Description |
Billing Mode | The yearly/monthly subscription and pay-as-you-go modes are supported. |
Database | Select based on the specific database type. |
Region | If the source database is a TencentDB instance, the region here must be consistent with the region of the source database instance. If the source database is not a TencentDB instance, the region here must be consistent with the region where data is consumed. If there is no special requirement for the data consumption region, select the region closest to the source database. |
Edition | Select 2.0. |
Specification | Select a specification based on your business requirements. |
Tag | Set tag keys and values for subscription tasks to efficiently manage multiple tasks through tags. |
Subscribed Instance Name | Select Name After Creation: The default task name will be the same as the task ID. You can rename the task after the subscription task is created. Set it to Name Now. Enter the task name in the input box below. |
Terms of Service |
Configuration Item | Description |
Instance Type | Database type selected during creation. It cannot be modified. We recommend selecting the primary database for subscription, as the subscription service imposes minimal load on the source database. |
Access Type | Select based on your scenario. For preparation steps for different access types, see Preparation Overview. Public Network: The source database is accessible through a public IP address. Self-Built on CVM: The source database is deployed on Tencent CVM. Direct Connect: The source database can connect to Tencent Cloud VPC through Direct Connect. VPN Access: The source database can connect to Tencent Cloud VPC through VPN Connections. Database: The source database is a TencentDB instance. CCN: The source database can connect to Tencent Cloud VPC through CCN. |
Public Network | Host address: IP address or domain name of the source database. Port: port used by the source database. |
Self-Built on CVM | CVM instance: The instance ID of the CVM. Port: port used by the source database. |
Direct Connect | VPC-based Direct Connect gateway: Only the VPC-based Direct Connect gateway is supported for the Direct Connect access type. Confirm the network type associated with the gateway. VPC: Select the VPC and subnet associated with the Direct Connect gateway and VPN gateway. Host address: IP address or domain name of the source database. Port: port used by the source database. |
VPN Access | VPN gateway: Select the VPN gateway instance for access. VPC: Select the VPC and subnet associated with the Direct Connect gateway and VPN gateway. Host address: IP address or domain name of the source database. Port: port used by the source database. |
Database | Cloud database instance: instance ID of the source database. We recommend subscribing to the primary database because the subscription service places minimal load on the source database. When the source database is TencentDB for MariaDB, you can select disaster recovery/read-only instances. |
CCN | Host address: host IP address or domain name of the source database. Port: port used by the source database. VPC CCN: Specify the CCN instance name. Access VPC: refers to the VPC in CCN that connects to the subscription link. Select a VPC other than the one to which the source database belongs from all VPCs associated with CCN. For example, if a database in the Guangzhou region serves as the source database, select a VPC in another region, such as a VPC in Chengdu or Shanghai. Subnet: name of the subnet in the selected VPC. Access VPC region: The region of the source database you selected when purchasing the task must be consistent with the region of the access VPC. If they are inconsistent, the source database region will be automatically changed to the VPC access region. |
Account/Password | Account and password of the source database. |
Configuration Item | Description |
Network | Specify in advance the VPC environment for accessing the Kafka of the subscription task (including the VPC and subnet). You can then consume the data subscription service through this VPC. Note: Access within the same VPC: All CVMs in the same VPC can access subscription data normally without additional configuration. Cross-VPC access: If the consumer CVM is in another VPC, you need to configure CCN to enable cross-VPC access. |
Configuration Item | Description |
Subscription Type | Data update: Subscribes to data updates for all objects in the source database, including INSERT, UPDATE, and DELETE operations. Structure update: Subscribes to the creation, modification, and deletion of structures for all objects in the source database. All instances: Subscribes to data updates and structure updates for all objects in the source database. |
Kafka Version | Displays the version of the built-in Kafka in DTS. It cannot be modified. |
Number of Topic Partitions | Set the number of partitions for topics in the built-in Kafka for data delivery. Increasing the number of partitions can improve the speed of data write operations and consumption. A single partition can guarantee message order, while multiple partitions cannot. If you have strict requirements on the order of consumed messages, select 1 as the number of partitions. |
Topic Partition Policy | Partition by table name: Write data with the same table name into the same partition. Partition by table name + primary key: Data with the same primary key is written to the same partition. This method is suitable for tables with hot data, as it distributes hot table data across different partitions to improve concurrent consumption efficiency. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários