Failover cluster with Master-Slave on PostgreSQL
Welcome, hebraically! In this article I want to share the experience of deploying the cluster Master-slave on PostgreSQL. Fault tolerance is achieved by using pgpool-II (failover, online recovery). pgpool is a great tool for scaling and load balancing between servers and I think few know about the possibilities of automatic creation of failover on the slave server when the master and how to add new capacity to an already running cluster without shutting the entire cluster. Schema cluster and machine requirements The figure shows a typical diagram of the cluster Master-slave. The cluster should contain 1 master server (Master), at least 1 slave (Slave), 1 unit of scaling (Balancer). When each server needs to be installed Linux distribution (I have put Red Hat 6.1) on the site scale have installed the gcc compiler. PostgreSQL — 9.0.1, pgpool-II 3.0.5. You can use other versions of the DBMS and pgpool. In this case, refer to the documentation. set up a dial-up co