About failover to your replica cluster
In the event of a failure at your primary datacenter, you can fail over to the replica nodes in the secondary datacenter if you configure a passive replica node for each node in your active cluster.
The time required to fail over depends on how long it takes to manually promote the replica cluster and redirect traffic.
Promoting a replica cluster does not automatically set up replication for the existing cluster. After promoting a replica cluster, you can reconfigure replication from the new active cluster. For more information, see "Configuring high availability for a cluster."
Prerequisites
To fail over to passive replica nodes, you must have configured high availability for your cluster. For more information, see "Configuring high availability for a cluster."
Initiating a failover to your replica cluster
-
SSH into any passive node in the secondary datacenter for your cluster. For more information, see "Accessing the administrative shell (SSH)."
-
Initialize the failover to the secondary cluster and configure it to act as the active nodes.
ghe-cluster-failover
-
After the configuration run finishes, GitHub Enterprise Server displays the following message.
Finished cluster configuration
-
Update the DNS record to point to the IP address of the load balancer for your passive cluster. Traffic is directed to the replica after the TTL period elapses.
After GitHub Enterprise Server returns you to the prompt and your DNS updates have propagated, you've finished failing over. Users can access GitHub Enterprise Server using the usual hostname for your cluster.