Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

initiating-a-failover-to-your-replica-appliance.md 3.0 KB

You have to be logged in to leave a comment. Sign In
title intro redirect_from versions type topics
Initiating a failover to your replica appliance You can failover to a {% data variables.product.prodname_ghe_server %} replica appliance using the command line for maintenance and testing, or if the primary appliance fails. [/enterprise/admin/installation/initiating-a-failover-to-your-replica-appliance /enterprise/admin/enterprise-management/initiating-a-failover-to-your-replica-appliance /admin/enterprise-management/initiating-a-failover-to-your-replica-appliance] [{enterprise-server *}] how_to [Enterprise High availability Infrastructure]

The time required to failover depends on how long it takes to manually promote the replica and redirect traffic. The average time ranges between 2-10 minutes.

{% data reusables.enterprise_installation.promoting-a-replica %}

  1. To allow replication to finish before you switch appliances, put the primary appliance into maintenance mode:
  2. When the number of active Git operations reaches zero, wait 30 seconds.
  3. To verify all replication channels report OK, use the ghe-repl-status -vv command.
$ ghe-repl-status -vv
  1. To stop replication and promote the replica appliance to primary status, use the ghe-repl-promote command. This will also automatically put the primary node in maintenance node if it’s reachable.
$ ghe-repl-promote
  1. Update the DNS record to point to the IP address of the replica. Traffic is directed to the replica after the TTL period elapses. If you are using a load balancer, ensure it is configured to send traffic to the replica.
  2. Notify users that they can resume normal operations.
  3. If desired, set up replication from the new primary to existing appliances and the previous primary. For more information, see "[About high availability configuration](/enterprise/{{ currentVersion }}/admin/guides/installation/about-high-availability-configuration/#utilities-for-replication-management)."
  4. Appliances you do not intend to setup replication to that were part of the high availability configuration prior the failover, need to be removed from the high availability configuration by UUID.
    • On the former appliances, get their UUID via cat /data/user/common/uuid.
      $ cat /data/user/common/uuid
      
    • On the new primary, remove the UUIDs using ghe-repl-teardown. Please replace UUID with a UUID you retrieved in the previous step.
      $ ghe-repl-teardown -u <em>UUID</em>
      

Further reading

  • "[Utilities for replication management](/enterprise/{{ currentVersion }}/admin/guides/installation/about-high-availability-configuration/#utilities-for-replication-management)"
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...