tencent cloud

TDSQL-C for MySQL

Release Notes and Announcements
Release Notes
Product Announcements
Beginner's Guide
Product Introduction
Overview
Strengths
Use Cases
Architecture
Product Specifications
Instance Types
Product Feature List
Database Versions
Regions and AZs
Common Concepts
Use Limits
Suggestions on Usage Specifications
Kernel Features
Kernel Overview
Kernel Version Release Notes
Optimized Kernel Version
Functionality Features
Performance Features
Security Features
Stability Feature
Analysis Engine Features
Inspection and Repair of Kernel Issues
Purchase Guide
Billing Overview
Product Pricing
Creating Cluster
Specification Adjustment Description
Renewal
Payment Overdue
Refund
Change from Pay-as-You-Go to Yearly/Monthly Subscription
Change from Pay-as-You-Go to Serverless Billing
Value-Added Services Billing Overview
Viewing Billing Statements
Getting Started
Database Audit
Overview
Viewing Audit Instance List
Enabling Audit Service
Viewing Audit Logs
Log Shipping
Post-Event Alarm Configuration
Modifying Audit Rule
Modifying Audit Service
Disabling Audit Service
Audit Rule Template
Viewing Audit Task
Authorizing Sub-User to Use Database Audit
Serverless Service
Serverless Introduction
Creating and Managing a Serverless Cluster
Elastic Scaling Management Tool
Serverless Resource Pack
Multi-AZ Deployment
Configuration Change
FAQs
Serverless Cost Estimator
Operation Guide
Operation Overview
Switching Cluster Page View in Console
Database Connection
Instance Management
Configuration Adjustment
Instance Mode Management
Cluster Management
Scaling Instance
Database Proxy
Account Management
Database Management
Database Management Tool
Parameter Configuration
Multi-AZ Deployment
GD
Backup and Restoration
Operation Log
Data Migration
Parallel Query
Columnar Storage Index (CSI)
Analysis Engine
Database Security and Encryption
Monitoring and Alarms
Basic SQL Operations
Connecting to TDSQL-C for MySQL Through SCF
Tag
Practical Tutorial
Classified Protection Practice for Database Audit of TDSQL-C for MySQL
Upgrading Database Version from MySQL 5.7 to 8.0 Through DTS
Usage Instructions for TDSQL-C MySQL
New Version of Console
Implementing Multiple RO Groups with Multiple Database Proxy Connection Addresses
Strengths of Database Proxy
Selecting Billing Mode for Storage Space
Creating Remote Disaster Recovery by DTS
Creating VPC for Cluster
Data Rollback
Solution to High CPU Utilization
How to Authorize Sub-Users to View Monitoring Data
White Paper
Security White Paper
Performance White Paper
Troubleshooting
Connection Issues
Performance Issues
API Documentation
History
Introduction
API Category
Making API Requests
Instance APIs
Multi-Availability Zone APIs
Other APIs
Audit APIs
Database Proxy APIs
Backup and Recovery APIs
Parameter Management APIs
Billing APIs
serverless APIs
Resource Package APIs
Account APIs
Performance Analysis APIs
Data Types
Error Codes
FAQs
Basic Concepts
Purchase and Billing
Compatibility and Format
Connection and Network
Features
Console Operations
Database and Table
Performance and Log
Database Audit
Between TDSQL-C for MySQL and TencentDB for MySQL
Service Agreement
Service Level Agreement
Terms of Service
TDSQL-C Policy
Privacy Policy
Data Privacy and Security Agreement
General References
Standards and Certifications
Glossary
Contact Us

Use Limits

PDF
Focus Mode
Font Size
Last updated: 2026-03-10 16:14:49
This document describes considerations for the TDSQL-C for MySQL database proxy.
When the proxy connection address is used, if transaction split is not enabled, transaction requests will be routed to the primary instance.
Database proxy configuration supports cross-AZ. The number of selectable AZs is related to the number of available AZs in the current region, with a maximum of four AZs selectable. When the number of available AZs is one, it indicates that there is only one available AZ in the current region.
Multiple database proxy access addresses can be set, and the number of such addresses is the same as the number of database proxy nodes. That is, you can set as many database proxy access addresses as there are nodes.
When the proxy connection address is used for read-write separation, consistency for non-transactional reads is not guaranteed. If business operations require read consistency, it can be achieved by encapsulating reads within transactions or by using Hint syntax.
When the proxy connection address is used, show processlist will merge the results from all nodes and return them.
For prepare statements, the database proxy first sends the prepare to all nodes. When a subsequent execute request arrives, it determines the routing of the execute request based on the statement type in prepare. For example, if a write statement is prepared, the execute will be sent to the primary instance. While if a read statement outside a transaction is prepared, it will be sent to a read-only instance.
After business connections reach the database proxy, the proxy connects to the read-write instance and all configured read-only instances. The database proxy itself has no restriction on the maximum number of connections. The connection limit is primarily determined by the maximum number of connections of the backend database instances (the minimum value of the maximum connections for read-write and read-only instances will affect business performance).
After the database proxy is enabled, when a new read-only instance is added or a read-only instance is restarted, only new connection requests will be routed to the new or restarted read-only instance. You can view the performance metrics of each proxy node via the overview or performance monitoring. If an imbalance in the number of connections across proxy nodes is detected, you can rebalance the load to distribute the connections.
The database proxy feature can only be enabled in Serverless services when the automatic start-stop capability is disabled.
The read-only analysis engine is added to the database proxy with a default weight of 0, which cannot be modified. SQL can only be forwarded to the read-only analysis engine using the syntax /*to server instance ID*/.
When the database proxy is connected to using the JDBC driver version mysql-connector-j-8.0.32.jar, the connection may hang when using prepare. Therefore, we recommend that you do not use the JDBC driver version mysql-connector-j-8.0.32.jar to connect to the database proxy. Instead, we recommend using the mysql-connector-j-8.0.33.jar version. This issue relates to an official MySQL Bug, as documented in Bug#109864.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback