Read/Write Splitting with Pgpool
Function
Pgpool is a middleware designed for PostgreSQL. It is deployed between database servers and clients and transfers messages between the frontend and backend. Pgpool is transparent to servers and clients. It provides features such as connection pooling, replication, load balancing, and connection limiting to improve the performance, availability, and scalability of database clusters.
This topic describes how to use pgpool to implement read/write splitting for RDS for PostgreSQL DB instances and read replicas.
Prerequisites
- You have purchased an ECS that is in the same region, VPC, and security group as your RDS for PostgreSQL DB instance. For details, see Purchasing an ECS in Custom Config Mode.
- You have purchased an RDS for PostgreSQL DB instance and installed a PostgreSQL client on the ECS. For details, see Buying a DB Instance and Connecting to It Using a PostgreSQL Client.
- You have created a read replica for the RDS for PostgreSQL DB instance. For details, see Creating a Read Replica.
- You have connected to the RDS for PostgreSQL DB instance through the ECS. For details, see Connecting to a DB Instance from a Linux ECS over a Private Network.
Procedure
FAQ
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