# Yellow status sfter creating cluster

**URL:** <https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 5:02pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308 "2018-03-09T17:02:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![saad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saad/32/17214_2.png) [@saad](https://discuss.elastic.co/u/saad)\
**Post date:** [March 9, 2018, 5:02pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/1 "2018-03-09T17:02:56Z")

</div>

in the past I had one elasticsearch and today I created another node the cluster created. when I run  
GET /\_cat/health?v  
I got status YELLOW. How I will make the status GREEN

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 9, 2018, 5:16pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/2 "2018-03-09T17:16:16Z")

</div>

Add more nodes or decrease the number of replicas

---

<div class="post-metadata">

**Author:** ![Melvyn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melvyn/32/35269_2.png) [@Melvyn](https://discuss.elastic.co/u/Melvyn)\
**Post date:** [March 9, 2018, 5:51pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/3 "2018-03-09T17:51:58Z")

</div>

Hi!

I think some terms need to be defined or redefined:

A node is an instance of Elasticsearch.  
A cluster is a collection of one or more node.

In your case I believe you created a new index. An index by default is created with 5 primary shards and one replica for every one of those shard. If you have only one node, your replicas cannot be allocated, resulting in a yellow cluster. As David says the solution would be to set your number of replica to zero or to add one more node.

---

<div class="post-metadata">

**Author:** ![saad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saad/32/17214_2.png) [@saad](https://discuss.elastic.co/u/saad)\
**Post date:** [March 9, 2018, 6:28pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/4 "2018-03-09T18:28:05Z")

</div>

Thank you,

I am using the default shards and replica numbers (5 shareds and 1 replica)

What is the equation of replica with number of nodes??

---

<div class="post-metadata">

**Author:** ![Melvyn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/melvyn/32/35269_2.png) [@Melvyn](https://discuss.elastic.co/u/Melvyn)\
**Post date:** [March 9, 2018, 6:41pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/5 "2018-03-09T18:41:53Z")

</div>

A primary and a replica (of the same shard) cannot be allocated to the same node (it would be useless).

Like often when it comes to architecture: it will depend on different factors like how many server do you expect to fail and so on.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 9, 2018, 6:42pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/6 "2018-03-09T18:42:00Z")

</div>

To allocate replicas, you need more than one node.

Replicas are not going to be allocated on the same node as primaries as it is pretty much useless.

---

<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:** [April 6, 2018, 6:42pm UTC](https://discuss.elastic.co/t/yellow-status-sfter-creating-cluster/123308/7 "2018-04-06T18:42:06Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
