How to resolve the UNASSIGNED index

I have 3 node cluster. had a configuration in elastic search yml as below
index.number_of_replicas: 2 (1 is primary, 2 replica so totally 3 node cluster)
index.number_of_shards: 3 (3 node cluster)

But Still my cluster is in RED, with unassigned index

"status" : "red",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 168,
"active_shards" : 266,
"relocating_shards" : 0,
"initializing_shards" : 2,
"unassigned_shards" : 13,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 94.66192170818505

Please help me to resolve this.

Did I missing any other config

Please check the blog post below:

I find it really helpful.

1 Like

sure will take look..
How the replica and the shards are configured.
I thought replication is to all the cluster and shards also in all the cluster.
both should match the number of node. is this correct understanding

ES will allocate the shards and replicas appropriately and according based on the number of nodes you have in the cluster. If it can distribute because you have more nodes it will do so.

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