Gianni Ciolli
95de5ef976
Bug fix
2016-08-31 09:23:36 +09:00
Gianni Ciolli
c0eea90402
Cascading replication support for Barman mode
...
If upstream_node is specified, we point the standby to that node;
otherwise we point it to the current primary node.
2016-08-31 09:23:25 +09:00
Gianni Ciolli
135fa2e1b9
Fixing primary_conninfo generation ( #232 )
...
After introducing Barman mode, it is no longer true that STANDBY CLONE
can derive primary_conninfo from the connection to the master. Now we
ask Barman how to connect to a valid cluster node, and then we fetch
the conninfo for the current master from repmgr metadata.
2016-08-30 10:45:22 +09:00
Gianni Ciolli
2a8861be8b
Fixing inaccurate option checking ( #230 )
...
The incompatibility between Barman mode and use_replication_slots was
not checked properly, and did not cause repmgr to exit.
2016-08-30 08:33:41 +09:00
Ian Barwick
a55c224510
README: add note about cloned standby configuration.
2016-08-25 09:33:52 +09:00
Ian Barwick
844b9f54e4
Merge branch 'github-234-repmgrd-no-schema'
2016-08-25 09:21:03 +09:00
Ian Barwick
8de84707d9
Always use PQstatus to check connection status
...
This addresses GitHib #234 .
2016-08-25 08:35:47 +09:00
Ian Barwick
3ea61689eb
repmgr.conf.sample: change db and user names in conninfo string
...
They now match the examples given in README.md
2016-08-23 14:11:04 +09:00
Ian Barwick
efb106f8a0
Pass ssh_options when executing a remote command.
...
This resolves GitHub #233 .
2016-08-22 14:34:48 +09:00
Ian Barwick
5baec14a1e
Add repmgr.conf setting 'barman_config'
...
Enables provision of a non-default Barman configuration file.
2016-08-18 15:06:06 +09:00
Ian Barwick
fe469fe188
Merge pull request #191 from gciolli/feature-barman-support
...
Add Barman support to repmgr standby clone
2016-08-18 15:04:46 +09:00
Ian Barwick
5a7ce552f0
"renumber" deprecated command line options without a short version
...
This will keep them out of the main list.
2016-08-17 14:51:32 +09:00
Ian Barwick
ef7bed1b3d
repmgrd: refactor standby monitoring status query and code
...
This had grown somewhat complex with addition of handling for
various corner cases. Much of the work has now been delegated
to the query itself.
2016-08-16 19:15:58 +09:00
Ian Barwick
6bd1c6a36d
Skip largely pointless master reconnection attempt.
...
Experimental - see notes in code.
2016-08-16 13:25:39 +09:00
Ian Barwick
9831cabd4d
Minor refactoring of do_master_failover()
...
- rename some variables for clarity
- ensure all structures are initialised correctly
- update code comments
2016-08-16 11:23:59 +09:00
Ian Barwick
d244fb29d7
Update HISTORY
2016-08-15 13:15:55 +09:00
Ian Barwick
4a349f7224
repmgr: emit warning if a deprecated command line option is used
2016-08-15 12:27:55 +09:00
Ian Barwick
fb6109b3e6
Update README.md
...
Note default usage of `pg_basebackup --xlog-method=stream`.
2016-08-15 10:16:22 +09:00
Martín Marqués
b314f5aaf4
Merge pull request #225 from ryno83/patch-1
...
Update README.md
2016-08-12 19:52:25 +02:00
Renaud Fortier
7fc340a8e2
Update README.md
...
I think this will improve the readme.
2016-08-12 10:28:31 -04:00
Ian Barwick
e4c8bd981b
Update HISTORY
2016-08-12 09:59:10 +09:00
Ian Barwick
a310417a49
Refactor standby monitoring query
...
Addresses GitHub #224
2016-08-11 17:28:16 +09:00
Ian Barwick
9a07686ceb
When the output of a remote command isn't required, ensure it's consumed anyway
...
This fixes a regression introduced with commit 85f68e9f77
Also clean up some code made redundant by same.
2016-08-11 08:46:55 +09:00
Ian Barwick
45aa0724c4
Update HISTORY
...
Also remove code comment obsoleted by previous commit
2016-08-09 15:32:56 +09:00
Ian Barwick
a558e9379e
Merge branch 'gciolli-fix_219'
...
PR #220 resolving GitHub #219
2016-08-09 15:29:59 +09:00
Gianni Ciolli
85f68e9f77
Only collect remote command output if the caller requires it
...
This addresses GitHub #216 and #167 .
2016-08-09 14:14:52 +09:00
Ian Barwick
00e55c0672
Update HISTORY
2016-08-09 12:29:19 +09:00
Ian Barwick
84ab37c600
Improve handling of failover events when failover is set to manual
...
- prevent repmgrd from repeatedly executing the failover code
- add event notification 'standby_disconnect_manual'
- update documentation
This addresses GitHub #221 .
2016-08-09 12:09:09 +09:00
Ian Barwick
6a198401db
Fix repmgrd's command line help option parsing
...
As in commit d0c05e6f46 , properly distinguish between
the command line option -? and getopt's unknown option marker '?'
2016-08-08 21:17:56 +09:00
Ian Barwick
cb78802027
repmgrd: prevent endless loops in failover with manual node
...
The LSN reported by the shared memory function defaults to "0/0"
(InvalidXLogRecPtr) - this indicates that the repmgrd on that node
hasn't been able to update it yet. However during failover several
places in the code assumed this is an error, which would cause
an endless loop waiting for updates which would never come.
To get around this without changing function definitions, we can
store an explicit message in the shared memory location field so the
caller can tell whether the other node hasn't yet updated the field,
or encountered situation which means it should not be considered
as a promotion candidate (which in most cases will be because
`failover` is set to `manual`.
Resolves GitHub #222 .
2016-08-08 14:29:24 +09:00
Gianni Ciolli
48f637486d
Now STANDBY SWITCHOVER and STANDBY FOLLOW log an event notification on
...
success and also on some failures, precisely those when it makes sense
or it is reasonably possible to do so.
2016-08-05 14:19:04 +02:00
Ian Barwick
73280a426b
Update HISTORY
2016-08-05 16:43:52 +09:00
Ian Barwick
b8ee321d5f
Merge branch 'gciolli-feature-better-auto-deb'
...
GitHub pull request #218
2016-08-05 16:42:27 +09:00
Gianni Ciolli
ccdc0f9871
Improved "repmgr-auto" Debian package
...
* Version set to 3.2dev
* Binaries are placed in PGBINDIR and then linked from /usr/bin,
instead of being placed into /usr/bin directly. This is necessary
for the switchover command, because it requires pg_rewind, which is
placed in PGBINDIR too.
2016-08-05 09:34:32 +02:00
Gianni Ciolli
3bccd79510
Two bugfixes to Barman mode
...
- we forgot to recreate an empty pg_replslot;
- we parse tablespace info more safely.
2016-08-04 14:40:24 +02:00
Gianni Ciolli
a4ee10ca22
Rewording sentence in README
2016-08-04 14:40:24 +02:00
Gianni Ciolli
7ca9ff6d54
Reindenting do_standby_clone (no code change).
2016-08-04 14:40:24 +02:00
Gianni Ciolli
b660eb7988
Rename from pg_restore_command to restore_command
...
This follows the recent upstream change.
2016-08-04 14:40:23 +02:00
Gianni Ciolli
6a4546a7b3
Updated README to reflect the new barman-wal-restore.py script
2016-08-04 14:40:23 +02:00
Gianni Ciolli
2f529e20c1
Barman support, draft #1
...
TODO: we need to check what happens with configuration files placed in
non-standard locations.
2016-08-04 14:40:23 +02:00
Gianni Ciolli
9853581d12
Introduce a Cell List to store tablespace data
2016-08-04 14:40:23 +02:00
Gianni Ciolli
ecdae9671f
Factor out tablespace metadata retrieval
...
The purpose of this commit is to prepare the terrain for non-default
tablespace support in the forthcoming Barman support.
2016-08-04 14:40:23 +02:00
Gianni Ciolli
1f3e937bbe
Add local_command function to run commands locally
2016-08-04 14:40:23 +02:00
Ian Barwick
89aeccedc2
Various bugfixes and code documentation improvements
2016-08-04 12:31:24 +09:00
Ian Barwick
d9bda915bb
Update documentation and --help output for witness register
...
This completes the implementation of GitHub #186
2016-08-04 10:36:26 +09:00
Ian Barwick
c565be4ab6
Improve database connection status checking
2016-08-04 10:36:21 +09:00
Ian Barwick
c26fd21351
Implement repmgr standby register command
2016-08-04 10:36:16 +09:00
Ian Barwick
6b57d0e680
Separate witness registration into do_witness_register()
2016-08-04 10:36:12 +09:00
Ian Barwick
6faf029c93
Add witness unregister command info in help output
2016-08-02 18:39:04 +09:00
Ian Barwick
c42437a4f2
standby/witness unregister - enable even if node isn't running
...
If the `--node` option is provided with the id of the node to unregister,
the action can be executed on any node.
This addresses GitHub #211 .
2016-08-02 17:09:27 +09:00