Changing the name of the leader node

To change the leader node, stop the existing cluster by stopping all Dgraph processes on each of the servers, start the Cluster Coordinator on another node, and recreate the cluster with the new leader node.

To change which node is the leader node:
  1. Stop the existing cluster by stopping the nodes and the Cluster Coordinator service.
  2. Start the Cluster Coordinator service on another node.
  3. Recreate the cluster with another node as the leader, by referencing the new location of the Cluster Coordinator to all nodes.