You can deploy a backup or mirror of the coordinator instance on a separate host machine. The backup coordinator instance, called the standby coordinator, serves as a warm standby if the primary coordinator becomes nonoperational. You create a standby coordinator from the primary coordinator while the primary is online.
When you enable coordinator mirroring for an existing system, the primary coordinator continues to provide service to users while a snapshot of the primary coordinator instance is taken. While the snapshot is taken and deployed on the standby coordinator, changes to the primary coordinator are also recorded. After the snapshot has been deployed on the standby coordinator, the standby coordinator is synchronized and kept current using Write-Ahead Logging (WAL)-based streaming replication. Greenplum Database WAL replication uses the walsender
and walreceiver
replication processes. The walsender
process is a primary coordinator process. The walreceiver
is a standby coordinator process.
Since the coordinator does not house user data, only system catalog tables are synchronized between the primary and standby coordinators. When these tables are updated, the replication logs that capture the changes are streamed to the standby coordinator to keep it current with the primary. During WAL replication, all database modifications are written to replication logs before being applied, to ensure data integrity for any in-process operations.
This is how Greenplum Database handles a coordinator failure.
gpactivatestandby
utility to have the standby coordinator take over as the new primary coordinator. Upon activation of the standby coordinator, the replicated logs reconstruct the state of the primary coordinator at the time of the last successfully committed transaction. The activated standby coordinator then functions as the Greenplum Database coordinator, accepting connections on the port specified when standby coordinator was initialized. See Recovering a Failed Coordinator.These Greenplum Database system catalog tables contain mirroring and replication information.
walsender
processes that are used for Greenplum Database coordinator and segment mirroring.Parent topic: Overview of Greenplum Database High Availability