Hi,
I have set up a elasticsearch cluster over three machines .
Elasticsearch Version : 1.7
- elasticsearch1
- elasticsearch2
- elasticsearch3
Elastic picked elasticsearch1 as the master node.Now i restarted elasticsearch3 .But my shards are not getting assigned properly.
My cluster health is :
{
"cluster_name" : "TestCluster",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 4,
"active_shards" : 8,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 2,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
As we can see there are 2 unassigned shards and no delayed shards, thus elastic is stuck in RED state.
Below is the state snapshot :