Christoph Moench-Tegeder
a89084c6b5
include sys/wait.h for wait() and friends
...
the wait()-macros (WEXITSTATUS etc.) live in sys/wait.h as per
1003.1, and on some platforms (notably FreeBSD) compilation will
fail if wait.h isn't included explicitely.
2017-09-19 17:31:49 +02:00
Ian Barwick
687c8b4e27
Initial changes for 9.3 support
2017-09-15 10:27:37 +09:00
Ian Barwick
a9f4a027a7
pgindent run
2017-09-11 11:14:13 +09:00
Ian Barwick
e4f7dc8234
Add copyright notices
2017-09-08 13:27:39 +09:00
Ian Barwick
ed16c32fe7
Check minimum server version for pg_rewind
2017-08-31 13:30:59 +09:00
Ian Barwick
b1ba476241
Rename "archiver" check etc. to "archive-ready"
...
Gives a better indication of what's being checked.
2017-08-17 12:23:56 +09:00
Ian Barwick
eabd56f3be
"standby follow": check node system identifiers match
2017-08-14 11:45:08 +09:00
Ian Barwick
b95b3e50e3
Return system identification information with appropriate data types
2017-08-14 08:50:54 +09:00
Ian Barwick
50b82f785e
Add function to execute "IDENTIFY_SYSTEM"
2017-08-11 22:01:02 +09:00
Ian Barwick
8a50a72dc5
Additional "node status" output
2017-08-10 17:18:08 +09:00
Ian Barwick
4f2161bd83
Cleanup various #defines
2017-08-10 15:11:53 +09:00
Ian Barwick
970ed5d959
Bump minimum supported version to 9.5
...
We assume availability of pg_rewind.
2017-08-10 15:07:32 +09:00
Ian Barwick
f2cf46bba3
Check replication lag before attempting switchover
2017-08-08 10:16:47 +09:00
Ian Barwick
2499b42ef8
switchover: check for pending archive files on the demotion candidate
...
If the current primary (demotion candidate) still has any files to archive,
it will delay the shutdown until all files are archived. If there is a
substantial number of files, and/or the archive command executes slowly,
this will probably lead to an unwelcome delay in the switchover process.
2017-08-08 00:37:20 +09:00
Ian Barwick
7cf3b9b618
repmgrd: improve logging of BDR monitoring
...
Also always log information about event_notification command
2017-07-27 21:12:41 +09:00
Ian Barwick
eff26b496c
repmgrd: updates for BDR monitoring
2017-07-27 09:49:53 +09:00
Ian Barwick
56b2e9bb84
Rename/add configuration file options
...
In previous versions of repmgr, some options had ambiguous meanings,
and/or were used for slightly different purposes. This way we end
up with a couple more options (most of which probably won't need
adjusting) but greater clarity and flexibility.
Removed:
master_reponse_timeout:
renamed to "async_query_timeout", as this was its main usage
retry_promote_interval_secs:
replaced by "primary_notification_timeout"
Added:
async_query_timeout:
timeout (in seconds) when executing asynchronous queries
primary_notification_timeout:
number of seconds to wait for notification from the new primary
after a failover
primary_follow_timeout:
number of seconds to wait for the new primary to become available
when executing "repmgr standby follow"
2017-07-25 11:13:32 +09:00
Ian Barwick
ec00202a31
Add configure option --with-bdr-only
...
Builds repmgr with only BDR functionality; other code is disabled
at critical points.
2017-07-16 17:18:34 +09:00
Ian Barwick
a29bc3e0fa
Rename config.[ch] to configfile.[ch]
2017-07-16 09:41:26 +09:00
Ian Barwick
e3b3fb65f0
repmgrd: restrict BDR monitoring to two node setup
...
It's not safe to have more than two nodes with this kind of
"failover", so we don't need to select alternative nodes by
priority.
2017-07-14 12:56:11 +09:00
Ian Barwick
5fbcf3e476
Remove witness server references
2017-07-10 09:31:31 +09:00
Ian Barwick
2787994a6e
Make repmgrd failover settings configurable
2017-07-07 21:11:22 +09:00
Ian Barwick
0d226867b4
Add "location" column
2017-07-06 01:17:00 +09:00
Ian Barwick
ded8d95e5a
interim commit
2017-06-28 16:38:41 +09:00
Ian Barwick
7845a1fb47
Minimum supported version is currently 9.4
2017-06-25 21:46:50 +09:00
Ian Barwick
5ab2ac0e9a
Convert configuration file parmeter "failover_mode" to an enum
...
We might want to add more modes in the future.
2017-06-21 09:53:41 +09:00
Ian Barwick
94a88326ef
repmgrd: further code ported
2017-06-20 09:17:29 +09:00
Ian Barwick
dc347f1484
Additional "standby clone" code
...
We'll break up the unwieldy "do_standby_clone()" function into discrete
unit for easier maintenance.
2017-04-28 22:00:26 +09:00
Ian Barwick
bcf55b4f72
Split "action" functions to individual files
...
repmgr3's repmgr.c file was not far off 10,000 lines - this will make
it easier to manage individual parts of the code.
2017-04-26 22:58:21 +09:00
Ian Barwick
18c2cfda0b
Fix tabulation
2017-04-22 09:06:42 +09:00
Ian Barwick
001d887e8d
Initial database functions
2017-04-21 15:12:33 +09:00
Ian Barwick
0b0a0c69fc
Implement config file parsing
2017-04-21 12:11:00 +09:00
Ian Barwick
f9dfcb20b4
Initial config file structure definition and initialisation
2017-04-20 16:42:56 +09:00
Ian Barwick
0fb4876256
Initial config file infrastructure
...
Also unify command line option structure/parsing so everything's
in the same order in the code.
2017-04-20 09:41:50 +09:00
Ian Barwick
8968cfe735
Add logging and repmgr command sanity checks
2017-04-20 00:32:04 +09:00
Ian Barwick
76e8c4624e
repmgr: initial runtime option parsing and root execution detection
2017-04-19 23:16:36 +09:00
Ian Barwick
1631917715
Initial table definitions and coding for repmgr client utility
2017-04-19 22:41:20 +09:00
Ian Barwick
e6237cc81a
Makefiles and placeholder code
2017-04-18 11:26:51 +09:00