Patroni, etcd, and HAProxy have a few dependencies necessary for them to function. Most of these are easily obtained, so the amount of work in this recipe should be relatively minimal.
Let's get this part done so we can proceed to the really interesting stuff!
This recipe depends on few potentially supplementary packages that are missing from many Linux distributions. Red-Hat-based systems need to install the EPEL package for the appropriate Red Hat platform from the following URL:
https://fedoraproject.org/wiki/EPEL
Users of Debian-based distributions should be able to follow this recipe as written.
For this recipe, we will need at least three PostgreSQL servers. For demonstration purposes, we'll assume they are named pg1
, pg2
, and pg3
. Follow these steps on all three servers:
- Debian-based systems should use this
apt-get
command to install as many distribution-provided packages as possible:
sudo apt-get install python-psycopg2 python...