From 9523894808ce83b16fba2455c786f56ecc6ae6f7 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 30 Sep 2016 15:14:35 +0900 Subject: [PATCH 01/23] Bump dev version number 3.3dev --- version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.h b/version.h index 78de4b4f..c49452f3 100644 --- a/version.h +++ b/version.h @@ -1,6 +1,6 @@ #ifndef _VERSION_H_ #define _VERSION_H_ -#define REPMGR_VERSION "3.2dev" +#define REPMGR_VERSION "3.3dev" #endif From 84595fe71172e11dfa5c1d43febdf77b38dbc08d Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 3 Oct 2016 15:57:33 +0900 Subject: [PATCH 02/23] Tweak repmgr.conf.sample Put `monitor_interval_secs` at the start of the `repmgrd` section, as it's a very fundamental configuration item. --- repmgr.conf.sample | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repmgr.conf.sample b/repmgr.conf.sample index b3dc3d06..20215b3d 100644 --- a/repmgr.conf.sample +++ b/repmgr.conf.sample @@ -160,6 +160,9 @@ # These settings are only applied when repmgrd is running. Values shown # are defaults. +# monitoring interval in seconds; default is 2 +#monitor_interval_secs=2 + # Number of seconds to wait for a response from the primary server before # deciding it has failed. @@ -187,9 +190,6 @@ #promote_command='repmgr standby promote -f /path/to/repmgr.conf' #follow_command='repmgr standby follow -f /path/to/repmgr.conf -W' -# monitoring interval in seconds; default is 2 -#monitor_interval_secs=2 - # change wait time for primary; before we bail out and exit when the primary # disappears, we wait 'reconnect_attempts' * 'retry_promote_interval_secs' # seconds; by default this would be half an hour, as 'retry_promote_interval_secs' From ba89758366ad0460ad817287866606c1c628b972 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Mon, 3 Oct 2016 15:59:03 +0900 Subject: [PATCH 03/23] Update `barman-wal-restore` documentation Barman 2.0 provides this in a separate, more convenient `barman-cli` package; document this and add note about previous `barman-wal-restore.py` script. --- README.md | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 69478a50..31225880 100644 --- a/README.md +++ b/README.md @@ -599,8 +599,8 @@ ensure that: - the `barman_server` setting in `repmgr.conf` is set to the SSH hostname of the Barman server; - the `restore_command` setting in `repmgr.conf` is configured to - use a copy of the `barman-wal-restore.py` script shipped with Barman - (see below); + use a copy of the `barman-wal-restore` script shipped with the + `barman-cli package` (see below); - the Barman catalogue includes at least one valid backup for this server. @@ -616,26 +616,24 @@ ensure that: > corresponding to the value of `barman_server` in `repmgr.conf`. See > the "Host" section in `man 5 ssh_config` for more details. -`barman-wal-restore.py` is a Python script provided by the Barman -development team, which must be copied in a location accessible to -`repmgr`, and marked as executable; `restore_command` must then be -set in `repmgr.conf` as follows: +`barman-wal-restore` is a Python script provided by the Barman +development team as part of the `barman-cli` package (Barman 2.0 +and later; for Barman 1.x the script is provided separately as +`barman-wal-restore.py`). + +`restore_command` must then be set in `repmgr.conf` as follows: