Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All the cluster nodes should share the same data directory. There will be one data folder shared across all the nodes in the cluster using any mechanism. All the nodes should have read/write access to the folder.

Cluster Setup

  1. Navigate to Home → Settings → Search for Cluster

  2. Upload a JSON file like below:

    Code Block
    languagejson
    {
      "notifTimeout": 60,
      "notifErrorRcpts": ["john.doe@krishagni.com", "jane.doe@krishagni.com"],
      "secret": "TopSecret!@3",
      "nodes": [
        {
          "name": "lion",
          "url": "http://10.0.1.1:8080/openspecimen/"
        },
        {
          "name": "panther",
          "url": "http://10.0.1.2:8080/openspecimen/"
        }
      ]
    }

Attribute

Description

nodes

The list of OpenSpecimen nodes in the cluster.

  1. The name attribute identifies the node (same as that specified in openspecimen.properties).

  2. The URL attribute specifies the HTTP URL of the node's Tomcat to use for sending the cluster related events/notifications.

secret

A secret known only to the OpenSpecimen nodes. Used for trusted communication between the nodes in the cluster.

notifTimeout

Max. amount of time, in seconds, that a node waits for receiving the acknowledgement from the other nodes in the cluster for its broadcast event.

notifErrorRcpts

Comma separated list of email IDs to whom the cluster error notifications are sent.

Startup Sequence

The preferred way to startup the nodes in cluster is to start one node at a time, ensure the node is up and functional, and then move on to the next node in the cluster. Do not attempt to start all nodes of the cluster at the same time or concurrently.

...