Verifying the Cluster and its Nodes

After setting up an OpenSearch cluster, you can verify whether a cluster and its nodes are created by using the OpenSearch Interact page.

The OpenSearch Interact page enables you to retrieve information from the search engine server regarding the statistics of a cluster and node among other information.

On the OpenSearch Interact page, in the Service Type drop-down list, select Cluster and in the Cluster API drop-down list, select _cluster/stats?pretty=true.

See Administering OpenSearch Using the OpenSearch Interact Page.

Alternatively, you can verify the cluster setup by executing the following command in a browser:

http(s)://host:port/_cluster/stats?

Where, host refers to the OpenSearch host.

Enter the OpenSearch user credentials (osadmin) when prompted for login information.

The cluster and node information can be found in the nodes/count/total section of the response.

Description of Color Codes for OpenSearch Cluster

The status of the OpenSearch cluster is indicated by the following color codes:

  • Green - Indicates that the OpenSearch cluster is fully operational. That is, all primary and replica shards are allocated.

  • Yellow - Indicates a warning. All primary shards are allocated, but at least one replica is missing. Data is not missing, so search results will still be complete. However, high availability is compromised to some degree. If more shards disappear, data maybe lost.

  • Red - Indicates that at least one primary shard (and all of its replicas) is missing. That is, data is missing and as a result searches will return partial results and indexing of the missing shard will return an exception.