Yellow health status creating shards


(Anurag Phadke) #1

We are running a 2 node ElasticSearch 0.16.2 cluster in embedded mode
and tried to create an index similar to
http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag


(medcl.net) #2

because your set index repica is 2,but you just have only 2 nodes,so
if you start another node,you will have "green".

--medcl

-----Original Message-----
From: Anurag
Sent: Friday, June 24, 2011 11:25 AM
To: users@elasticsearch.com
Subject: yellow health status creating shards

We are running a 2 node ElasticSearch 0.16.2 cluster in embedded mode
and tried to create an index similar to
http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag


(Anurag Phadke) #3

thx, that wrked..

On Thu, Jun 23, 2011 at 8:40 PM, medcl2000@gmail.com wrote:

because your set index repica is 2,but you just have only 2 nodes,so
if you start another node,you will have "green".

--medcl

-----Original Message----- From: Anurag
Sent: Friday, June 24, 2011 11:25 AM
To: users@elasticsearch.com
Subject: yellow health status creating shards

We are running a 2 node ElasticSearch 0.16.2 cluster in embedded mode
and tried to create an index similar to
http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag


(system) #4