# Yellow health status creating shards

**URL:** <https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698>\
**Category:** Elasticsearch\
**Created:** [June 24, 2011, 3:25am UTC](https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698 "2011-06-24T03:25:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anurag\_Phadke](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Anurag\_Phadke](https://discuss.elastic.co/u/Anurag_Phadke)\
**Post date:** [June 24, 2011, 3:25am UTC](https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698/1 "2011-06-24T03:25:47Z")

</div>

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](https://www.elastic.co)**
>
> 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/](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](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

---

<div class="post-metadata">

**Author:** ![medcl\_net](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@medcl\_net](https://discuss.elastic.co/u/medcl_net)\
**Post date:** [June 24, 2011, 3:40am UTC](https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698/2 "2011-06-24T03:40:29Z")

</div>

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](mailto: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](https://www.elastic.co)**
>
> 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/](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](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

---

<div class="post-metadata">

**Author:** ![Anurag\_Phadke](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@Anurag\_Phadke](https://discuss.elastic.co/u/Anurag_Phadke)\
**Post date:** [June 24, 2011, 3:43am UTC](https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698/3 "2011-06-24T03:43:29Z")

</div>

thx, that wrked..

On Thu, Jun 23, 2011 at 8:40 PM, [medcl2000@gmail.com](mailto: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](mailto: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](http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index.html)
> 
> curl -XPUT '[http://localhost:9200/socorro/](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](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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:02am UTC](https://discuss.elastic.co/t/yellow-health-status-creating-shards/4698/4 "2017-07-06T04:02:46Z")

</div>


