Creating a Read Replica
Scenarios
Read replicas enhance the read capabilities and reduce the load on your DB instances.
After a TaurusDB for PostgreSQL instance is created, you can create read replicas for it as needed.
Constraints
- You can only create read replicas when your account balance is not below zero.
- Up to five read replicas can be created for a DB instance.
- The specifications of a read replica must be at least equal to those of the DB instance to prevent long delay and high load. If you want the specifications of a read replica to be smaller than those of the DB instance, submit a service ticket.
Procedure
- Log in to the TaurusDB console.
- On the Instances page, locate the desired DB instance and click Create Read Replica in the Operation column.
You can also enter the Create Read Replica page in either of the following ways:
- Click the instance name to go to the Basic Information page. In the upper right corner of the page, click
and choose Create Read Replica. Figure 1 Creating read replicas on the Basic Information page
- Click the instance name to go to the Basic Information page. In the upper right corner of the page, click
and choose View Instance Topology. In the instance topology, click Create Read Replica. Figure 2 Creating read replicas in the instance topology
- Click the instance name to go to the Basic Information page. In the upper right corner of the page, click
- Configure required parameters and click Next. Figure 3 Basic information
Table 1 Basic information Parameter
Description
Billing Mode
Pay-per-use is supported.
Region
By default, read replicas are in the same region as your DB instance.
DB Engine Version
Same as the DB engine of your DB instance by default and cannot be changed.
DB Instance Type
Only Single is supported.
AZ
You can deploy your DB instance and its read replicas in one AZ or across AZs to improve availability.
Storage Type
Determines the DB instance read/write speed. The higher the maximum throughput is, the higher the DB instance read/write speed can be. Only Cloud SSD is supported.
Cloud SSD: cloud disks used to decouple storage from compute.
Figure 4 Specifications and storage
Table 2 Specifications and storage Parameter
Description
Instance Specifications
Refers to the vCPUs and memory of a DB instance. Different instance specifications support different numbers of database connections and maximum IOPS.
For details, see TaurusDB for PostgreSQL Instance Specifications.
CPU Architecture
Only x86 is supported.
x86 instances use Intel® Xeon® Scalable processors and feature robust and stable computing performance. When working on high-performance networks, the instances provide the additional performance and stability that enterprise-class applications demand.
Storage Space
Contains the system overhead required for inodes, reserved blocks, and database operation.
By default, storage space of a read replica is the same as that of the primary DB instance.
Figure 5 Network and advanced settings
Table 4 Advanced settings Parameter
Description
Enterprise Project
If your account has been associated with an enterprise project, select the target project from the Enterprise Project drop-down list.
For more information about enterprise projects, see Enterprise Management User Guide.
Tag
Optional. Tags help you easily identify and manage your read replicas. A maximum of 20 tags can be added for each read replica.
After a read replica is created, you can view its tag details on the Tags page. For details, see TaurusDB for PostgreSQL Tags.
- Confirm specifications.
- If you need to modify your settings, click Previous.
- If you do not need to modify your settings, select the agreement and click Submit for pay-per-use read replicas.
- After a read replica has been created, you can view and manage it on the Instances page by clicking
on the left of the DB instance to which it belongs. To view the detailed progress and result of the creation, go to the Task Center page. For details, see Task Center.
FAQ
Q: Does creating read replicas during peak hours increase the load on my primary instance when my primary instance's CPU usage is high?
A: Yes. When a read replica is created, it synchronizes data from the primary instance, which consumes I/O and CPU resources of the primary instance. To avoid this impact, you can create read replicas during off-peak hours.
Follow-up Operations
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