Ian Barwick
1bc4e968f6
Localize variables
2017-07-03 14:57:39 +09:00
Ian Barwick
e3d52d1257
repmgrd: execute "standby follow"
2017-07-03 14:36:55 +09:00
Ian Barwick
18b40be7f1
Add configuration option "log_status_interval"
...
Normally (outside of log level DEBUG) repmgrd doesn't generate any
kind of log output, so examining the log file may give the impression
it's not working. Output an informational message at regular intervals
to show it's up and running.
2017-07-03 12:14:52 +09:00
Ian Barwick
34c746fcde
Rename "logxxx" configuration file parameters to "log_xxx"
...
This is more consistent with other parameters and conforms to
the pattern used by PostgreSQL itself, which uses the prefix "log_"
for logging parameters.
A warning will be emitted if the old version of the parameter name
is detected.
2017-07-03 10:38:15 +09:00
Ian Barwick
debe5a18c5
have new primary communicate to standbys
2017-06-30 21:45:25 +09:00
Ian Barwick
1857e23fef
add failover states
2017-06-30 17:42:39 +09:00
Ian Barwick
a666a49977
Execute promote command
2017-06-30 16:04:47 +09:00
Ian Barwick
fc4f276844
Improve handling
...
not sure if we need to store the electoral term...
2017-06-30 13:40:19 +09:00
Ian Barwick
3514e20367
poke it around until it works less badly
2017-06-29 09:35:09 +09:00
Ian Barwick
fa86fe4ad8
Basic voting
2017-06-29 01:11:21 +09:00
Ian Barwick
d6b6255144
interim commit
2017-06-28 18:20:03 +09:00
Ian Barwick
f4e8bf891d
interim commit
2017-06-28 17:28:26 +09:00
Ian Barwick
ded8d95e5a
interim commit
2017-06-28 16:38:41 +09:00
Ian Barwick
78a16d746d
Initial primary node monitoring
2017-06-27 00:15:29 +09:00
Ian Barwick
b64581c582
repmgrd: log startup on primary
2017-06-24 08:44:19 +09:00
Ian Barwick
27ad7b4f79
repmgrd: add stdout/stderr redirects
2017-06-23 22:41:58 +09:00
Ian Barwick
46c956e61a
Use "primary" instead of "master"
2017-06-23 21:33:54 +09:00
Ian Barwick
9566dc49f3
repmgrd: sanity check for presence of follow/promote commands
...
Autofailover will fail if either is missing.
2017-06-23 18:54:45 +09:00
Ian Barwick
1b2652037d
Rename enum types for consistency
2017-06-23 16:38:14 +09:00
Ian Barwick
dbaa2e0b44
Add a RecordStatus return type for functions which populate record structures
...
Unify a bunch of slightly different ways of handling the result.
2017-06-23 16:16:46 +09:00
Ian Barwick
66535e5417
repmgrd: initial startup
2017-06-22 17:23:05 +09:00
Ian Barwick
86e0f79135
repmgrd: fixes to command line handling
2017-06-22 13:22:46 +09:00
Ian Barwick
d77736329a
repmgrd: add command line option -L/--log-level
...
Mainly for ad-hoc debugging purposes without needing to change
the configuration file.
2017-06-22 00:09:18 +09:00
Ian Barwick
94a88326ef
repmgrd: further code ported
2017-06-20 09:17:29 +09:00
Ian Barwick
f713f30ef8
repmgrd: basic code
2017-06-20 01:35:33 +09:00
Ian Barwick
bfa6f6709d
repmgrd: add --help output and update Makefile
2017-06-12 09:11:32 +09:00
Ian Barwick
e6237cc81a
Makefiles and placeholder code
2017-04-18 11:26:51 +09:00