splendiddata / puppet_pure_repmgr

Puppet module for deploying postgrespure replicated cluster setups
1 stars 5 forks source link

Add automatic failover #18

Open sebasmannem opened 7 years ago

sebasmannem commented 7 years ago

for automatic failover: 1: enable repmgrd. A systemd unit file is added, but not yet enabled. See commit 24b66588931b75c136ef7d0e3d47b1abd9e5126c for that. 2: Add repmgr_funcs to shared_preload_libraries. See commit 2854637aa76921c579bdf94e62603007115acafa 3: Set following in repmgr.conf (also see comments of 2854637aa76921c579bdf94e62603007115acafa): failover=automatic promote_command='/usr/local/bin/repmgr standby promote -f /etc/repmgr-data.conf --log-to-file' follow_command='/usr/local/bin/repmgr standby follow -f /etc/repmgr-data.conf --log-to-file'