Elasticsearch cluster status is yellow. Allocate missing replica shards

Hi,
Can i get some help with this error?


2 Likes

Are both nodes set to act as data nodes, or just one?

I have 1 Elasticsearch node and the other is for ML

After doing some more researching it appears the error is coming from only having 1 node for handling the primary and replica shards

Are there any risks involved having unassigned shards?

By definition, a replica cannot be on same node as primary. Since you have only one node, you cannot have replicas. You can set replicas for all your indices to be 0 using the below:

PUT _settings
{
  "number_of_replicas": 0
}

Your cluster should return to green state once this command is acknowledged.

7 Likes

Thanks sandeepkanabar! that worked.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.