Question

How to setup clustering in Postgresql?

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: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-centos-6


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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!

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

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.