Constraints on Database Proxy
Supported Regions
To purchase multiple database proxies, you need to submit a service ticket to request the required permissions.
Supported Versions
- MySQL 5.6: 5.6.51.7 or later
- MySQL 5.7: 5.7.37.2 or later
- MySQL 8.0: all minor versions
- MySQL 8.4: To enable database proxy for MySQL 8.4, ensure that the proxy instance version is later than 2.26.06.000 and the database parameter authentication_policy is set to *:mysql_native_password.
For details about how to query the instance version, see Query the RDS Instance Version.
If your kernel version is not supported, upgrade the minor version.
Constraints
| Category | Constraints |
|---|---|
| Unsupported functions |
|
| Usage constraints |
|
Syntax Constraints
Read/write splitting randomly routes frontend requests to backend instance nodes by the configured weights.
Therefore, some SQL statements may have different results when being executed multiple times.
- Executing show processlist through a proxy instance and directly on the DB instance returns different results. This is because the proxy instance's show processlist only displays the requests that are routed through its proxy nodes.
- If a proxy node is abnormal, and you connect to the proxy through the read/write splitting address and run show processlist or kill, the command execution may be prolonged or freeze, but your services are not affected.
- If a proxy node is deleted, requests routed through this deleted node may be displayed in the output of show processlist executed on the proxy instance.
- If kill is executed on the proxy instance, error information such as timeout may be displayed occasionally. You can run show processlist again to check whether the services are killed successfully.
- If a proxy node is abnormal, there may be frame freezing for 2 seconds when you run SHOW PROCESSLIST. The results will still be returned.
- Requests that are routed by a proxy instance can be killed only by running kill on this proxy instance.
- With a read/write splitting address used, if stored procedures and functions rely on user variables (@variable), the execution results may be incorrect.
- Enabling session-level connection pooling will cause SELECT LAST_INSERT_ID() to consistently return 0.
What is your overall rating for this page?
Thank 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