Hello,

I have recently started using elastic search in my application and facing the following issues::

- Master Node Not Discovered
- Cluster Block Exception

Quite frequently I notice that the health of my cluster is RED (All primary shards are missing).

Because of which neither I am able to connect to the cluster nor able to index my data.

Where do the shards go ?

Can anybody help me with this issue ?

These are the stats of my cluster::

INDEX NAME ==> index_temp12_siddharth_vectors

NODE NAME ==> Sid_node_vectors_1

(It has now changed from red to yellow, but how do I stop it from going back to red ? How Can I handle the unassigned shards so that they start initializing ?)

{

"cluster_name" : "siddharth_cluster_vectors_1",

"status" : "yellow",

"timed_out" : false,

"number_of_nodes" : 1,

"number_of_data_nodes" : 1,

"active_primary_shards" : 7,

"active_shards" : 7,

"relocating_shards" : 0,

"initializing_shards" : 0,

"unassigned_shards" : 7,

"number_of_pending_tasks" : 0

}

Below are the stats of my shards ::

.marvel-2015.08.18 0 p STARTED 17934 13.1mb 127.0.1.1 Sid_node_vectors_1

.marvel-2015.08.18 0 r UNASSIGNED

index_temp12_siddharth_vectors 2 p STARTED 201 184.4mb 127.0.1.1 Sid_node_vectors_1

index_temp12_siddharth_vectors 2 r UNASSIGNED

index_temp12_siddharth_vectors 0 p STARTED 200 182.4mb 127.0.1.1 Sid_node_vectors_1

index_temp12_siddharth_vectors 0 r UNASSIGNED

index_temp12_siddharth_vectors 3 p STARTED 201 155.2mb 127.0.1.1 Sid_node_vectors_1

index_temp12_siddharth_vectors 3 r UNASSIGNED

index_temp12_siddharth_vectors 1 p STARTED 199 142.5mb 127.0.1.1 Sid_node_vectors_1

index_temp12_siddharth_vectors 1 r UNASSIGNED

index_temp12_siddharth_vectors 4 p STARTED 200 156.9mb 127.0.1.1 Sid_node_vectors_1

index_temp12_siddharth_vectors 4 r UNASSIGNED

.marvel-2015.08.19 0 p STARTED 236 948.2kb 127.0.1.1 Sid_node_vectors_1

.marvel-2015.08.19 0 r UNASSIGNED