Hello All,
I have a single node Elasticsearch setup. I have unassigned replicas
Here is the kibana query through which I am checking:
GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state
and output is:
index shard prirep state node unassigned.reason
%{[@metadata][cluster]}-metrics-server-20210818 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-metrics-server-20210804 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210622 0 r UNASSIGNED CLUSTER_RECOVERED
%{[@metadata][cluster]}-dashboard-metrics-scraper-20210621 0 r UNASSIGNED CLUSTER_RECOVERED
I am not sure why it is showing unassigned.
As this is single node cluster so I have set the no. of replicas to 0, using the below query
PUT /_all/_settings
{
"index" : {
"number_of_replicas" : 0
}
}
still the status is same as above(unassigned replicas).
Adittionally I ran the below command also to solve the issue:
PUT /_cluster/settings
{
"transient" : {
"cluster.routing.rebalance.enable" : "all"
}
}
but this also not worked.
please help in this.
Thanks in Advance...