Read/Write Splitting
Prerequisites
- You have logged in to the DDM console.
- You have logged in to the RDS console.
- You have bought an RDS DB instance with no read replicas and a DDM instance.
Procedure
- In the RDS DB instance list, locate the DB instance whose read/write requests you want to split and choose More > Create Read Replica in the Operation column.
- On the displayed page, specify the billing mode, instance class, and other required parameters and click Next. Figure 1 Creating a read replica
- On the displayed page, confirm the selected information and click Submit.
- Wait 3 to 5 minutes for the read replica to be created.
- Switch to the DDM console, locate the DDM instance you created and click its name.
- On the displayed page, in the left navigation pane, choose Schemas and click Create Schema. On the displayed page, specify Sharding Mode and Shards per DB Instance and click Next: Select DB Instance. Figure 2 Creating a schema
- On the displayed page, select the RDS DB instance you created. Click Preview. On the displayed page, enter the administrator and password of the created RDS DB instance and click Finish. Figure 3 Selecting the required RDS DB instances
- Wait 1 to 3 minutes for the schema to be created.
- In the left pane, click Basic Information. At the Associated DB Information area, view the primary RDS DB instance and its read replicas in the list. Figure 4 Associated DB instance information
- Click Modify Read Policy in the Operation column of the primary instance.
Last Article: Deleting an Account
Next Article: Task Center
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.