Hi
Raguram ReddyIf you search that index on your "Dashboard menu -> Index management -> Indices" section, do you see the replicas count on "1"? If so, you can click on the index name and in the settings section change this from 1 to 0 and then save changes. Does it return an error as well?
Or you create OpenSearch ISM, deployed via dev tools
PUT _plugins/_ism/policies/set_opendistro_replica_to_0
{
"policy": {
"policy_id": "Opendistro replica to 0",
"description": "Set replica count for .opendistro-* indices to 0",
"default_state": "index_created",
"states": [
{
"name": "index_created",
"actions": [],
"transitions": [
{
"state_name": "replica_0",
"conditions": {
"min_index_age": "0ms"
}
}
]
},
{
"name": "replica_0",
"actions": [
{
"retry": {
"count": 3,
"backoff": "exponential",
"delay": "1m"
},
"replica_count": {
"number_of_replicas": 0
}
}
],
"transitions": []
}
],
"ism_template": [
{
"index_patterns": [
".opendistro-*"
],
"priority": 1
}
]
}
}
After applying the newly created ISM to .opendistro* indices replica count will successfully changed from 1 to 0. It takes a few minutes to execute the policy after applying it to index.
Please let me know if this is helpful.