We are running a 2 node Elasticsearch 0.16.2 cluster in embedded mode
and tried to create an index similar to
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
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
(medcl.net)
June 24, 2011, 3:40am
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
Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.
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
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
Elasticsearch Platform — Find real-time answers at scale | Elastic
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