Using RDS for MySQL Database Proxies for Read/Write Splitting
You can enable database proxy for your RDS for MySQL instance to automatically forward read and write requests though a proxy address. To offload read pressure from the primary instance, write requests are forwarded to the primary instance and read requests to read replicas based on the routing policy of the database proxy.
This section describes how to use a database proxy to implement read/write splitting. The process is as follows:
- Enabling database proxy
- Step 2: Grant Access Permissions
- Step 3: Check Security Group Rules
- Step 4: Use a Proxy Address to Connect to an RDS for MySQL Instance
- Step 5: Verify Read/Write Splitting
Notes
- Before enabling database proxy, ensure that you have purchased an RDS for MySQL instance.
- Both the primary instance and read replicas must be available.
- For details about the regions and versions that support database proxies, see Constraints on Database Proxy.
Procedure
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