mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
repmgrd: optionally disconnect WAL receivers during failover
This is intended to ensure that all nodes have a constant LSN while making the failover decision. This feature is experimental and needs to be explicitly enabled with the configuration file option "standby_disconnect_on_failover". Note enabling this option will result in a delay in the failover decision until the WAL receiver is disconnected on all nodes.
This commit is contained in:
@@ -135,6 +135,8 @@ typedef struct
|
||||
/* following options for internal use */
|
||||
char config_archive_dir[MAXPGPATH];
|
||||
OutputMode output_mode;
|
||||
bool disable_wal_receiver;
|
||||
bool enable_wal_receiver;
|
||||
} t_runtime_options;
|
||||
|
||||
#define T_RUNTIME_OPTIONS_INITIALIZER { \
|
||||
@@ -174,7 +176,7 @@ typedef struct
|
||||
/* "cluster cleanup" options */ \
|
||||
0, \
|
||||
/* following options for internal use */ \
|
||||
"/tmp", OM_TEXT \
|
||||
"/tmp", OM_TEXT, false, false \
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user