Ian Barwick
ae3f302dc2
doc: document "repmgr node service"
...
This was originally intended for internal use, but it's mentioned
several times in the documentation and is useful for diagnostic
purposes.
2018-11-28 12:58:24 +09:00
Ian Barwick
d4216d053e
doc: fix missing quotation marks
...
Patch from Cédric Villemain
2018-11-12 10:19:34 +09:00
Ian Barwick
075d193a87
doc: remove redundant warning
...
No longer relevant for 4.2 and later.
2018-11-12 09:38:50 +09:00
Ian Barwick
7652a19e62
doc: update FAQ
...
Emphasize that repmgr does not actually perform replication.
2018-11-05 09:59:57 +09:00
Ian Barwick
7ae771e573
doc: add version compatibility matrix
2018-11-05 09:56:36 +09:00
Ian Barwick
44de7751f9
doc: clarify replication slot FAQ entry
2018-10-31 16:21:15 +09:00
Ian Barwick
d098c6a114
doc: update FAQ
...
Emphasize that repmgr does not actually perform replication.
2018-10-31 11:44:07 +09:00
Ian Barwick
3c5ef69f38
Add sanity check for extension version
...
This should cover the cases where the "repmgr" extension was installed
manually but not updated, or an upgrade was not fully completed.
2018-10-31 11:28:19 +09:00
Ian Barwick
b74129f363
doc: consolidate descriptions of SSH connectivity requirements
2018-10-31 10:11:13 +09:00
Ian Barwick
fdcc3850c8
doc: clarify network and software prerequisites
2018-10-31 10:01:58 +09:00
Ian Barwick
46f46612f8
Formatting standardization
2018-10-26 10:42:34 +09:00
Ian Barwick
a554914854
Avoid defining variable-length arrays
...
As of PostgreSQL commit d9dd406f, variable length arrays are no longer
permitted. As they're not actually required anyway, just define appropriate
constants.
Also noted in GitHub #510 .
2018-10-26 10:15:01 +09:00
Ian Barwick
4f0b10cac6
doc: update README
2018-10-24 15:23:24 +09:00
Ian Barwick
9fe1e9cb3e
doc: update 4.2 release notes
2018-10-24 15:03:57 +09:00
Ian Barwick
0cafeb3828
repmgrd: fix upstream role check
...
Only take action if it's confirmed as a standby.
v4.2.0
2018-10-23 12:50:04 +09:00
Ian Barwick
79e79bd5f2
"standby switchover": close all connections used to check repmgrd status
...
The connections used to check repmgrd status on all nodes were not being
closed if repmgrd was not running. Normally this wouldn't be a huge
problem as they will go away when repmgr terminates or the PostgreSQL
server restarted. However, if shutdown mode is "smart", the open
connection on the demotion candidate will cause the shutdown operation
to fail until repmgr times out.
2018-10-23 10:59:24 +09:00
Ian Barwick
a4e21fd8fe
Update doc version
2018-10-23 09:28:46 +09:00
Ian Barwick
e826f72312
Bump version number
...
4.2
2018-10-23 09:24:17 +09:00
Ian Barwick
1e8b3313ee
doc: fix typos
2018-10-23 09:22:04 +09:00
Ian Barwick
b5772d88dd
doc: fix typo
...
Per user report on mailing list.
2018-10-23 09:00:09 +09:00
Ian Barwick
22614573b9
Fix Makefile for VPATH builds under PostgreSQL 11
2018-10-22 20:05:09 +09:00
Ian Barwick
77c9092794
repmgrd: improve node role change detection
2018-10-19 11:33:08 +09:00
Ian Barwick
15bbe04a6f
Speed up witness "failover" during a switchover
2018-10-18 18:35:23 +09:00
Ian Barwick
0842560a88
repmgrd: handle case where upstream is no longer primary
...
If the upstream comes back on line (e.g. after a switchover), and its
status is no longer primary, restart monitoring to ensure the correct
primary (potentially the current node) is being monitored.
2018-10-18 17:04:14 +09:00
Ian Barwick
8bec4946bc
Ensure witness repmgrd detects change in upstream's role
...
This ensures that e.g. after a switchover, repmgrd running on a witness
node will automatically detect the new primary and monitor that.
2018-10-18 16:15:52 +09:00
Ian Barwick
3ab22f9442
repmgrd: ensure witness node doesn't try and follow another witness
...
Theoretically there should never be more than one witness node
visible here, but it's not impossible to rule it out, so add a
check just in case.
2018-10-18 12:20:04 +09:00
Ian Barwick
3a9c36a36c
doc: improve upgrade instructions
...
Note requirement to execute "systemctl daemon-reload" for systemd
systems...
2018-10-17 17:08:54 +09:00
Ian Barwick
2ded8987ac
doc: improve upgrade instructions
2018-10-17 14:35:36 +09:00
Ian Barwick
6311f3f30a
Handle NULL strings when parsing boolean arguments
2018-10-17 11:46:29 +09:00
Ian Barwick
12ec6c7abc
Doc: update HISTORY and 4.2 release notes
2018-10-17 09:50:36 +09:00
Ian Barwick
b2348c9a70
repmgrd: improve promotion script failure handling
...
While scanning for a new primary following a promotion script failure,
repmgrd was treating a witness server as a potential new primary
and would attempt to "follow" it. Fortunately "repmgr standby follow"
would do the right thing and choose the actual primary, if available,
otherwise do nothing, so the cluster would eventually end up in the
correct state, albeit for the wrong reason.
By skipping the witness server as a potential new primary,
repmgrd will do the right thing if the original primary does come
back online, i.e. resume monitoring as before.
2018-10-16 11:42:54 +09:00
Ian Barwick
7b26180ebb
doc: update upgrade instructions
2018-10-16 09:44:49 +09:00
Ian Barwick
d70a5250ab
doc: update upgrade instructions
2018-10-11 14:57:49 +09:00
Abhijit Menon-Sen
024accfbba
Merge pull request #508 from gilou/docfix
...
Missing comma in sudoers example
2018-10-10 22:00:43 +05:30
Gilles Pietri
55c967fd14
Missing comma in sudoers example
2018-10-10 17:07:36 +02:00
Ian Barwick
c1edb896df
Move repmgrd pid functions to 4.1 → 4.2 upgrade file
2018-10-10 10:12:39 +09:00
Ian Barwick
fd66d93937
Fix LWLockRelease() call in unset_bdr_failover_handler()
2018-10-08 09:36:50 +09:00
Ian Barwick
40e94635b2
doc: fix typo in repmgr.conf.sample
2018-10-08 09:36:28 +09:00
Ian Barwick
9ad41bfb0f
doc: expand upgrade section
2018-10-05 17:45:57 +09:00
Ian Barwick
35c156ce7e
Update 4.1 → 4.2 upgrade script
2018-10-05 12:15:18 +09:00
Ian Barwick
85f27ff559
doc: note repmgr's default pg_basebackup options
2018-10-04 13:13:28 +09:00
Ian Barwick
ad03885b72
repmgrd: fix parsing of -d/--daemonize option
...
The getopt API doesn't cope well with optional arguments to short form options,
e.g. "-o foo", so we need to check the next argument value to see whether it looks
like an option or an actual argument value.
2018-10-04 11:48:54 +09:00
Ian Barwick
3e38759c02
use appendPQExpBufferStr/-Char() consistently
2018-10-04 08:42:42 +09:00
Ian Barwick
15a5d2ee9d
"repmgr standby": use appendPQExpBufferStr/-Char() consistently
2018-10-03 17:31:12 +09:00
Ian Barwick
61c91df332
"repmgr node": use appendPQExpBufferStr/-Char() where appropriate
2018-10-03 14:09:29 +09:00
Ian Barwick
b346914d4d
repmgr: fix "Missing replication slots" label in "node check"
...
Per report in GitHub #507 .
2018-10-03 13:53:52 +09:00
Ian Barwick
ac40ef0e43
doc: add additional index entries for package information
2018-10-03 11:59:42 +09:00
Ian Barwick
eebf07549f
doc: update repmgrd configuration for Debian/Ubuntu
2018-10-03 11:59:27 +09:00
Ian Barwick
a40fd60cb5
repmgrd: fix parsing of -d/--daemonize option
2018-10-03 11:36:38 +09:00
Ian Barwick
bd24848ce9
doc: add tip about setting "ConnectTimeout" for SSH
2018-10-03 10:16:47 +09:00