From fe3885e1d6de99fe1634a71e14bcd105f2b76171 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Wed, 5 Dec 2018 15:38:30 -0700 Subject: [PATCH] Postgres replication repmgr notes --- source/resources/apps/repmgr/README.md | 40 ++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 source/resources/apps/repmgr/README.md diff --git a/source/resources/apps/repmgr/README.md b/source/resources/apps/repmgr/README.md new file mode 100644 index 0000000..e36c8f4 --- /dev/null +++ b/source/resources/apps/repmgr/README.md @@ -0,0 +1,40 @@ +# repmgr Postgres cluster + +https://repmgr.org/docs/repmgr.html + +Postgres 11 with streaming replication and backups. + +# Servers + +pg-oca --- Master Postgres Server +pg-oca-rep1 --- Standby Postgres Server +pg-oca-hdd --- Standby Postgres Server +pg-oca-barman --- Postgres Backup Server +pg-oca-witness-1 --- Postgres Witness Server + +Each server has two ethernet interfaces. One for the VPN for ssh, +and the second for database backend communication. + +# Install +Add Postgres community repository to each server. + +Install Postgres 11 server. + +# System Configuration + +Configure firewall. + +Configure base Postgres 11 server. +pg_hba.conf and tuning + +Configure ssh between nodes. +Which users? + +# repmgr Cluster Configuration +Set up nodes to communicate. + +Node pg-oca is master. +Node pg-oca-rep1 does streaming replication of pg-oca. +Node pg-oca-hdd does streaming replication of pg-oca-rep1 and stores to hard disk platters instead of NVMe drives. +Node pg-oca-barman runs the Postgres barman backup system, and does backups of pg-oca-rep1. +Node pg-oca-witness-1 is a Postgres witness server. It isn't needed at present.