Hello,

just an update as I was able to solve the issue. 
The health was:

cluster_name: BigLog
status: red
timed_out: false
number_of_nodes: 1
number_of_data_nodes: 1
active_primary_shards: 1175
active_shards: 1175
relocating_shards: 0
initializing_shards: 0
unassigned_shards: 1195

And the amount of unassigned shards came from the number of replicas:
1 and number of nodes 1 . So , a copy of each shard was expecting a new
node for being replicated.

For solving that, I did remove the repica of each index i.e :

curl -XPUT "http://XXXXXXX:9200/logstash-2014.05.01/_settings?";  -d '{
    "index" : {
        "number_of_replicas" : 0    } }
'

Then, I saw that I still had 280 unassigned shards. I got their indexes
by doing:

curl XXXXXX:9200/_cluster/state

and then looking for routing_nodes.

As log did not say anything about them, I decided to remove those
indexes:

 curl -XDELETE "http://XXXXXX:9200/$a/";

and the refresh:

curl -XPOST "http://XXXXX:9200/$a/_refresh";

now my cluster is in green (as I've removed the replicas) and logstash
is working .

{
cluster_name: BigLog
status: green
timed_out: false
number_of_nodes: 1
number_of_data_nodes: 1
active_primary_shards: 1200
active_shards: 1200
relocating_shards: 0
initializing_shards: 0
unassigned_shards: 0
}


Cheers,
Arnau

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/20140508151154.6fb5d82a%40eidolon.
For more options, visit https://groups.google.com/d/optout.

Reply via email to