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:
-
Stop the existing cluster by stopping the nodes and the Cluster
Coordinator service.
-
Start the Cluster Coordinator service on another node.
-
Recreate the cluster with another node as the leader, by
referencing the new location of the Cluster Coordinator to all nodes.