Quantcast
Channel: Tech Support
Viewing all articles
Browse latest Browse all 880

How To Create a Highly Available PostgreSQL Cluster using Patroni and HAProxy on CentOS/RHEL 7

$
0
0

This step by step guide will show you how to set up a highly available PostgreSQL cluster using Patroni and HAProxy on CentOS or RHEL 7 server. These instruction can also be applied (slight changes may be required) if you are running an earlier release of CentOS or RHEL 6.

Prerequisites

To follow this tutorial, you will need 4 (physical or virtual) machines with CentOS or RHEL 7 minimal installed, having sudo non-root user privileges.

We have prepared following 4 machines with CentOS Linux release 7.7.1908 for this guide. However, if you wish you can add up more machines in your cluster environment.

HOSTNAMEIP ADDRESSPURPOSE
node1192.168.10.1Postgresql, Patroni
node2192.168.10.2Postgresql, Patroni

node3192.168.10.3etcd
node4192.168.10.4HAProxy

When you are ready with the above prerequisites , follow step by step guide to set up PostgreSQL high availability cluster in your environment.

Viewing all articles
Browse latest Browse all 880

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>