Help Center/
Relational Database Service/
User Guide/
Working with RDS for MySQL/
Database Proxy (Read/Write Splitting)/
Database Proxy Configurations/
Modifying Read/Write Splitting Parameters
Updated on 2024-10-14 GMT+08:00
Modifying Read/Write Splitting Parameters
Scenarios
After read/write splitting is enabled, you can modify proxy parameters, for example, multiStatementType.
Constraints
- To modify read/write splitting parameters, you need to contact customer service to apply for required permissions.
- To change the value of multiStatementType, the proxy version must be 2.22.11.000 or later.
- All proxies of your DB instance must be in the Available state.
Procedure
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the primary instance name.
- In the navigation pane on the left, choose Database Proxy.
- On the displayed page, click Modify Parameters in the proxy information area.
- Change the value of multiStatementType and click OK.
multiStatementType is not available for read-only proxies.
- Strict (default): After a multi-statement request is sent to the primary instance, the read/write splitting of the current connection becomes unavailable and all subsequent requests are routed to the primary instance.
- Loose: After a multi-statement request is sent to the primary instance, the read/write splitting of the current connection still works.
- Parse: After a multi-statement request is sent to the primary instance, the request is parsed to determine whether to split subsequent read and write requests.
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot