Performing Administrative Tasks
This section describes some of the administrative tasks you can perform in OpenSearch using the command prompt.
Adding or Deleting a Node
When you add or delete a node, the shards and replicas are dynamically distributed across the available nodes.
Note:
The number of replicas determine the number of nodes that can go down without any data loss. The maximum number of replicas should be less than the number of nodes, that is, one less than the number of nodes. Replicas that are equal to or greater than the number of nodes do not add any benefit to the cluster, rather indexing will fail in such a scenario.
Changing the Node Type
When you deploy the OpenSearch search engine using the DPK that PeopleSoft delivers, by default the node type is set to master-data type.
If you want to change the node type, you need to update the opensearch.yml configuration file.
To specify a data node, for example, set
node.master: false
node.data: true
You should specify this setting before the node is brought up.
Viewing the List of Indexes in an OpenSearch Cluster
After deploying search definitions and building indexes, you can find out the list of indexes present in your OS Cluster by executing the following command in the browser:
http(s)://host:port/_cat/indices?v
You can use a similar command to view the plug-ins in your OpenSearch implementation:
https(s)://host:port?_cat/plugins?v