External master server support for failover/switchover
If the master is replicating from an external master, the monitor will save the host:port of the external server. During demotion, the old master stops the external replication while the new master begins it. Also, any commands that would add to gtid have to be omitted when an external master is in play.
This commit is contained in:
@ -71,6 +71,8 @@ typedef struct
|
||||
bool verify_master_failure; /**< Whether master failure is verified via slaves */
|
||||
int master_failure_timeout; /**< Time in seconds to wait before doing failover */
|
||||
int64_t master_gtid_domain; /**< Gtid domain currently used by the master */
|
||||
char external_master_host[MAX_SERVER_ADDRESS_LEN]; /**< External master host, for fail/switchover */
|
||||
int external_master_port; /**< External master port */
|
||||
bool auto_rejoin; /**< Attempt to start slave replication on standalone servers or servers
|
||||
replicating from the wrong master. */
|
||||
int n_excluded; /**< Number of excluded servers */
|
||||
|
Reference in New Issue
Block a user