Postgresql – Creating High Availability Cluster with PostgreSQL

clusteringhigh-availabilitypostgresqlreplication

I am new to database design. I have a task to create a high-availability cluster. I Googled a lot, however I haven't found any good way to do this on PostgreSQL.

Where should I start and what are the steps involved in creating a high-availability cluster?

Best Answer

There are many ways to set up an HA cluster for PostgreSQL. Some ways are big and tough.

The easiest method is the following:

  1. sync your db to a standby server
  2. Install heartbeat and do a asymmetric clustering

This method is the easiest method to build a HA cluster with graceful degradation .