Commit Graph

433 Commits

Author SHA1 Message Date
Ian Barwick
30b11c08e6 Disable any configuration settings not compatible with PostgreSQL 9.3
And emit a warning while we're at it.
2017-09-18 13:12:38 +09:00
Ian Barwick
750a776f1d Fixes for PostgreSQL 9.3 support 2017-09-18 11:00:39 +09:00
Ian Barwick
ea2693bc75 Move create_recovery_file() et al to repmgr-action-standby.c
As they're only ever called from there.
2017-09-18 09:53:08 +09:00
Ian Barwick
31c7cb4e9a Fixes for 9.3 support 2017-09-15 17:13:17 +09:00
Ian Barwick
192f968d29 Workaround for 9.3 2017-09-15 11:57:33 +09:00
Ian Barwick
687c8b4e27 Initial changes for 9.3 support 2017-09-15 10:27:37 +09:00
Ian Barwick
e040f95aaa "standby clone": fix replication slot generation
Slot on source node was being deleted even if source node is the intended
upstream node.
2017-09-14 08:47:56 +09:00
Ian Barwick
55f203a2fc Add "-o ConnectTimeout=10" as default in "ssh_options" 2017-09-13 13:23:16 +09:00
Ian Barwick
f194c254b8 Update README
Clarify that "standby switchover" can only be executed on a direct downstream
of the current primary.
2017-09-13 11:55:40 +09:00
Ian Barwick
e583e2eb40 "standby switchover": fix error message 2017-09-13 11:30:29 +09:00
Ian Barwick
cf58d9460c Add missing README sections 2017-09-13 08:11:56 +09:00
Ian Barwick
5da0275cdc Fix configuration file detection logging
The logger won't be initialised at this point, so we'll have to output
directly.

This is mainly useful for diagnosing how repmgr is finding (or not finding)
its configuration file.
2017-09-12 12:14:28 +09:00
Ian Barwick
621ca352df Dynamically generate "repmgr_version.h" 2017-09-12 12:02:26 +09:00
Ian Barwick
b6cd816923 Tidy up some log output 2017-09-12 11:08:41 +09:00
Ian Barwick
13d55b9bd8 Update configfile location logging output 2017-09-11 22:13:52 +09:00
Ian Barwick
cf59944a35 Fix "repmhr cluster --help" output 2017-09-11 21:25:30 +09:00
Ian Barwick
f617c83434 Enable packagers to explicitly provide the configuration file location as a patch 2017-09-11 17:38:12 +09:00
Ian Barwick
b6b31b15b2 Implement "repmgr cluster cleanup" 2017-09-11 13:48:46 +09:00
Ian Barwick
a9f4a027a7 pgindent run 2017-09-11 11:14:13 +09:00
Ian Barwick
0e6699ecb6 Formatting updates before pgindent run 2017-09-11 11:05:43 +09:00
Ian Barwick
c9f3f971e2 Add further documentation files 2017-09-11 11:05:43 +09:00
Ian Barwick
36d63f499d Add further documentation files 2017-09-11 11:00:48 +09:00
Ian Barwick
64ec85bb10 Clarify _do_node_archive_config() usage 2017-09-11 11:00:13 +09:00
Ian Barwick
f19d546fa1 Merge pull request #2 from gciolli/master
Small clarification on sudo-based configuration (#1)
2017-09-11 10:23:37 +09:00
Ian Barwick
9b2a35c5e3 Add/update various documents 2017-09-11 10:21:20 +09:00
Ian Barwick
3447257ae4 repmgrd: minor fixes and comment updates 2017-09-08 20:59:21 +09:00
Ian Barwick
e16f68dfce Use "MODULE_PATHNAME" in function definitions 2017-09-08 20:46:45 +09:00
Ian Barwick
ba38b99590 repmgrd: fix logging when reloading configuration 2017-09-08 14:52:33 +09:00
Ian Barwick
e4f7dc8234 Add copyright notices 2017-09-08 13:27:39 +09:00
Ian Barwick
82db2237ad Add files as placeholders 2017-09-08 08:16:34 +09:00
Ian Barwick
ab8cb9d471 "standby register": remove database connection parameter warning 2017-09-07 17:09:29 +09:00
Ian Barwick
b6a27b975d "standby clone": improve handling when designated upstream doesn't yet exist
This situation can occur in provisioning environments, where a node's
upstream may not exist at the point it's cloned. If replication slots
are in use, we'll need to make sure no attempt is made to create
the replication slot on the designated upstream, as that will end in
tears. We assume the user will be prepared to complete this step manually.
2017-09-07 12:35:27 +09:00
Ian Barwick
3787dd3795 "standby switchover": better handling of remote execution failure 2017-09-07 11:50:56 +09:00
Ian Barwick
edee80cc37 Rename option "node check --is-shutdown" to "--is-shutdown-cleanly"
As that's what we really want to know. Also return "UNCLEAN_SHUTDOWN"
if that's the case, rather than "RUNNING" which is confusing, even
though it's a command for internal use.
2017-09-07 11:15:27 +09:00
Ian Barwick
79531ae9da "standby switchover": fix check for remote repmgr binary
Also add a useful hint about setting "pg_bindir".
2017-09-07 10:26:46 +09:00
Gianni Ciolli
6d63c0f941 Small clarification on sudo-based configuration (#1)
Now we are more explicit on what we recommend for the various
service_X_command settings when using sudo.

Signed-off-by: Gianni Ciolli <gianni.ciolli@2ndQuadrant.com>
2017-09-06 20:32:54 +01:00
Ian Barwick
ee7a5b6e66 Minor bug and log fixes 2017-09-06 17:28:31 +09:00
Ian Barwick
03f400617c "standby register": add --dry-run and check node is attached to upstream 2017-09-06 15:48:23 +09:00
Ian Barwick
66219c3097 README and "repmgr standby --help" updates 2017-09-06 14:13:06 +09:00
Ian Barwick
a28bbd68eb "standby clone": improve replication slots handling
Ensure replication slot is created on the upstream node and deleted from
the source node, if upstream node and source nodes differ.
2017-09-06 12:16:02 +09:00
Ian Barwick
bd07a34472 "standby clone": improve log messages
Make it clearer which nodes are being connected to, and why.
2017-09-06 10:15:52 +09:00
Ian Barwick
e21a3ef7ec Fix typo 2017-09-06 09:31:16 +09:00
Ian Barwick
1c015c72a0 "cluster show": display "location" field too 2017-09-05 14:25:29 +09:00
Ian Barwick
9f0d44373b "cluster show": syntax fix 2017-09-05 13:35:25 +09:00
Ian Barwick
1ef00f5a3b repmgrd: parse "follow_command" during cascaded standby failover 2017-09-05 11:19:25 +09:00
Ian Barwick
eeef0b5df5 Trim recovery.conf lines when outputting as debug log lines 2017-09-05 10:33:41 +09:00
Ian Barwick
5b5b456ecb "standby switchover": improve logging
Also no need to disconnect/reconnect from/to local node while it promotes.
2017-09-05 10:26:27 +09:00
Ian Barwick
d82e936556 "standby promote": improve logging
Specifically state which server is being promoted; this is particularly
important when the promotion occurs as part of a series of other operations,
e.g. "standby switchover".

Also no need to disconnect/reconnect while the server is promoted.
2017-09-05 09:43:16 +09:00
Ian Barwick
78e6bdeebe Have repmgrd parse "standby follow --upstream-node-id=%n" 2017-09-04 13:42:50 +09:00
Ian Barwick
9a0f45d7d3 Standardize quotation marks in log messages 2017-09-04 10:56:57 +09:00