Starting and stopping the Cluster Coordinator service

To ensure that nodes can function together in a cluster, the Cluster Coordinator service must be running on the leader node and all the nodes must be started with references to the host name and port of the Cluster Coordinator service.

You start the Cluster Coordinator service on the leader node only.

It is assumed that the Cluster Coordinator package has been downloaded and installed on the server that hosts the Dgraph designated as the leader node.

To start or stop the Cluster Coordinator service:

  1. On the server that will serve as the leader node, go to the Oracle\Endeca\ClusterCoordinator\<version>\bin directory and locate the clusterCoordinator script.
    The script has a different extension for Windows and Linux.
  2. From this directory, run the script as follows:
    • To start, run:
      clusterCoordinator start
    • To stop, run:
      clusterCoordinator stop
    Note: If you provide a full path to the script on the command line, you can also run it from another directory. In this case, the Cluster Coordinator creates its dataDir in the path from which you run the script.

    When the Cluster Coordinator is started on a server, it uses the host name of this server, and the port 2181. (You can change the Cluster Coordinator configuration to use another port, using its configuration file.)

After the Cluster Coordinator service has been started on a node, you can start the data store (and its associated Dgraph process) on this node. This will be the leader node.