Ian Barwick
54a4d1e444
README: clarify that the repmgr metadatabase must be part of the replication cluster
2016-10-26 20:28:22 +09:00
Ian Barwick
d4b8c034e9
Update HISTORY
v3.2.1
2016-10-24 09:03:46 +09:00
Ian Barwick
b8f4c35810
Merge branch 'master' of github.com:2ndQuadrant/repmgr into REL3_2_STABLE
...
Bump version to 3.2.1
2016-10-24 08:14:04 +09:00
Ian Barwick
0cde0068dd
repmgrd: improve witness failover logging
...
Log the new master node as INFO rather than DEBUG.
2016-10-20 10:56:16 +09:00
Ian Barwick
20d66df0ef
repmgr: prevent involuntary cloning where no repmgr schema present on master
2016-10-19 20:26:55 +09:00
Ian Barwick
3f7c30b84d
repmgr: require a valid repmgr cluster name unless -F/--force supplied
...
Addresses issue mentioned in GitHub #242 .
2016-10-19 16:16:12 +09:00
Ian Barwick
a63baf7fcb
repmgr: rename local variable config_file_found to remote_config_file_found
...
We also have a global `config_file_found` - avoid confusion with that.
2016-10-19 15:30:02 +09:00
Ian Barwick
e19c643389
repmgr: refactor check_upstream_config() for clarity
...
Also ensure the check for sufficient walsenders is only carried out
when using pg_basebackup.
2016-10-19 15:06:21 +09:00
Ian Barwick
f058833451
repmgr: in Barman clone mode, don't try and create the data directory twice
...
In Barman mode the data directory is created early containing a temporary
directory needed to hold temporary files while cloning from the Barman
server. In other modes we might not know the data directory location until
connecting to the source server, so its creation happens later. In Barman
mode ensure that step is skipped.
2016-10-19 10:00:50 +09:00
Ian Barwick
96c14adfdb
repmgr: ensure data directory defaults to that of the source node
...
As long as -D/--pgdata is not supplied, and barman mode is not used
for cloning.
2016-10-17 16:34:49 +09:00
Ian Barwick
d2c09a1f71
repmgr: clean up runtime options structure
...
Place elements in a sensible order and split the associated initializer
macro over multiple lines for easier editing.
Also move a few related global variables into to the structure to keep
everything in the same place.
2016-10-11 13:06:09 +09:00
Ian Barwick
2389101ae9
"pg_logical/snapshot" -> "pg_logical/snapshots"
2016-10-11 13:06:04 +09:00
Gianni Ciolli
cbc2841433
When restoring from Barman, create pg_logical subdirectories
...
Nodes cloned from Barman backups were missing these subdirectories,
and so they were unable to start when promoted.
2016-10-11 13:05:48 +09:00
Ian Barwick
50119056a5
repmgr: clean up runtime options structure
...
Place elements in a sensible order and split the associated initializer
macro over multiple lines for easier editing.
Also move a few related global variables into to the structure to keep
everything in the same place.
2016-10-11 12:54:56 +09:00
Ian Barwick
a279c42df9
"pg_logical/snapshot" -> "pg_logical/snapshots"
2016-10-11 09:32:55 +09:00
Ian Barwick
f70b6ea136
Merge branch 'fix-barman-mode' of git://github.com/gciolli/repmgr
...
Fixes GitHub #245 .
2016-10-11 09:21:31 +09:00
Ian Barwick
2bc877114c
repmgr: simplify LSN parsing
...
Also silences a compiler warning.
2016-10-10 22:57:24 +09:00
Ian Barwick
e4cb6d7130
repmgr: simplify LSN parsing
...
Also silences a compiler warning.
2016-10-10 22:56:49 +09:00
Gianni Ciolli
502c056753
When restoring from Barman, create pg_logical subdirectories
...
Nodes cloned from Barman backups were missing these subdirectories,
and so they were unable to start when promoted.
2016-10-10 10:18:33 +02:00
Ian Barwick
871ec47ff5
Fix repmgr cluster crosscheck output
...
Show actual node ID rather than incremental number.
Fixes GitHub #244 .
2016-10-10 16:20:17 +09:00
Ian Barwick
30c5cc86f3
Update README
...
Also reorder HISTORY entries.
2016-10-10 15:12:48 +09:00
Ian Barwick
f435abb3ec
Update README
...
Also reorder HISTORY entries.
2016-10-10 15:10:06 +09:00
Ian Barwick
b977b48aee
repmgr: standardize SSH-related error messages
2016-10-07 07:48:52 +09:00
Ian Barwick
a217b4d0a9
repmgr: standardize SSH-related error messages
2016-10-07 07:42:15 +09:00
Ian Barwick
108bdeb269
Add 'cluster crosscheck' to help output detail
...
Per GitHub #243 .
2016-10-06 07:39:29 +09:00
Ian Barwick
2dcb75f889
Add 'cluster crosscheck' to help output detail
...
Per GitHub #243 .
2016-10-06 07:38:45 +09:00
Ian Barwick
fefa43e3a6
Minor README fix
v3.2
2016-10-05 16:49:01 +09:00
Ian Barwick
c1a1fe6f82
Update README
...
`--ignore-external-config-files` deprecated
2016-10-05 16:48:40 +09:00
Ian Barwick
b509ce6382
Minor README fix
2016-10-05 16:47:37 +09:00
Ian Barwick
1150bf272a
Update README
...
`--ignore-external-config-files` deprecated
2016-10-05 15:09:07 +09:00
Ian Barwick
4dc3a05e8d
Update history
2016-10-05 13:58:05 +09:00
Ian Barwick
5945accd84
Add documentation for repmgrd failover process and failed node fencing
...
Addresses GitHub #200 .
2016-10-05 13:58:01 +09:00
Ian Barwick
15cbda9ec3
repmgr: consistent error message style
2016-10-05 13:57:57 +09:00
Ian Barwick
09ac6cd145
Update history
2016-10-05 13:57:10 +09:00
Ian Barwick
2fae788bc4
Add documentation for repmgrd failover process and failed node fencing
...
Addresses GitHub #200 .
2016-10-05 11:25:36 +09:00
Ian Barwick
eb90f864c9
repmgr: consistent error message style
2016-10-05 10:31:25 +09:00
Ian Barwick
358559acc4
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.
2016-10-03 16:04:02 +09:00
Ian Barwick
0a9f8e160a
Tweak repmgr.conf.sample
...
Put `monitor_interval_secs` at the start of the `repmgrd` section, as it's
a very fundamental configuration item.
2016-10-03 16:03:59 +09:00
Ian Barwick
ba89758366
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.
2016-10-03 15:59:03 +09:00
Ian Barwick
84595fe711
Tweak repmgr.conf.sample
...
Put `monitor_interval_secs` at the start of the `repmgrd` section, as it's
a very fundamental configuration item.
2016-10-03 15:57:33 +09:00
Ian Barwick
9523894808
Bump dev version number
...
3.3dev
2016-09-30 15:14:35 +09:00
Ian Barwick
a2d67e85de
Bump version
...
3.2
2016-09-30 15:13:56 +09:00
Ian Barwick
df09af4d57
Update README
...
`repmgr cluster show --csv` now only reflects node availability,
and no longer overloads this with node type (master/standby) information.
2016-09-30 15:07:34 +09:00
Ian Barwick
2c1cbc6bf9
Fix witness server initialisation
2016-09-30 13:43:47 +09:00
Ian Barwick
ed22fe326e
Document and expand pg_ctl override configuration options
...
These are now prefixed with "service_" to emphasize that they're
OS-level commands, not repmgr ones; also added reload and promote
commands:
service_start_command
service_stop_command
service_restart_command
service_reload_command
service_promote_command
GitHub #169
2016-09-30 11:58:45 +09:00
Ian Barwick
46500e1408
Documentation update and miscellaneous code cleanup
2016-09-30 09:30:22 +09:00
Ian Barwick
c3971513b6
Refactor show diagnose to handle node IDs correctly.
...
See previous comments for `show matrix`.
2016-09-30 01:46:01 +09:00
Ian Barwick
a2910eded9
Refactor show matrix to handle node IDs correctly.
...
Previously the code assumed repmgr node IDs to be sequential,
which is not guaranteed to be the case. With a non-sequential
list of node IDs, an incorrect node id would be displayed,
and memory accessed beyond the bounds of the matrix array.
The refactored code is considerably less elegant than the original
but will correctly handle a non-sequential sequence of node IDs.
2016-09-29 18:51:55 +09:00
Ian Barwick
dc70e2d804
Remove superfluous PQfinish() call
...
Connection was previously closed, if this error condition is triggered
a segfault will occur.
2016-09-29 11:53:13 +09:00
Ian Barwick
ea45158f50
Refactor cluster diagnose
...
- use the remote user setting, like other SSH-based remote operations
(avoid hardcoding the user name)
- enable `repmgr cluster matrix' to accept the cluster name, node id
and the database connection information instead of requiring repmgr.conf;
this means we don't have to assume that repmgr.conf is in one
of the default locations
2016-09-29 11:41:14 +09:00