You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeff Moe fe3885e1d6
Postgres replication repmgr notes
6 years ago
..
README.md Postgres replication repmgr notes 6 years ago

README.md

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.