How to setup clustering in Postgresql?

Posted May 24, 2016 17.5k views
CentOSPostgreSQLMonitoringHigh Availability

Do I have to setup replication to have clustering setup in Postgresql? Can I not have just clustering setup in two servers.

Postgresql 9.5.0
CentOS 6.7

ps- installed postgres on two nodes following below link:

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

While you will always be able to manually configure and deploy a PostgreSQL cluster on Droplets…

As of Feb 14, 2019, DigitalOcean’s Managed Databases product allows you to create managed PostgreSQL clusters quickly via the Control Panel UI or API.

For more information:

Hope you like it!

I am not a big Postgre user myself but doing a bit of searching found this. It sounds like Postgre only supports replication ( a couple types ) out of the box but there are third party utilities that allow you to create a clustered postgre environment.

Hi kshitijajoshi , Did u find a way to set up PostgreSQL HA cluster ? If yes How to configure a 2-node HA PostgreSQL cluster which load balances the requests

(both read/write requests) from the clients?

My specifications are:

OS: Ubuntu 12.04.4 LTS

PostgreSQL 9.5

Disk Size:95GB

RAM size: 8GB