This topic describes how to enable the read/write splitting feature for an ApsaraDB RDS for MySQL instance for which the shared proxy service is enabled. This feature provides a read/write splitting endpoint. This endpoint can distribute write requests to your RDS instance and read requests to the read-only RDS instances that are attached to your RDS instance. The distribution is based on the read weights of these instances.
Background information
You can upgrade your RDS instance from shared proxy to dedicated proxy. Dedicated proxies provide higher performance and easier read/write splitting than shared proxies.
The following section describes how to disable the shared proxy service, enable the dedicated proxy service, and then enable the read/write splitting feature.
Procedure
- Go to the Database Proxy page to disable the shared proxy service.
- Enable the dedicated proxy service.
- Enable the read/write splitting feature.
For more information about the read/write splitting feature in the dedicated proxy service, see Enable the read/write splitting feature for an ApsaraDB RDS for MySQL instance.