# Cluster health set to yellow

**URL:** https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934
**Category:** Elasticsearch
**Created:** [May 7, 2019, 10:17am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934 "2019-05-07T10:17:37Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Sakshi\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakshi_srivastava/32/45707_2.png) [@Sakshi\_Srivastava](https://discuss.elastic.co/u/Sakshi_Srivastava)
#### Post date: [May 7, 2019, 10:17am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/1 "2019-05-07T10:17:37Z")

</div>

Hello,  
I am new to elasticsearch and I am running the same on windows using bin\elasticsearch. I have set the number of shards to 3 and number of replicas to 1 in custom settings. I am creating a copy of elasticsearch in same directory and changing the node name and port in the yaml file. Still the cluster health is yellow and not green. Could you please help me?

---

<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: [May 7, 2019, 10:55am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/2 "2019-05-07T10:55:19Z")

</div>

Hi

Few things to check:

- Your elasticsearch logs for both nodes
- The output of `GET /_cat/nodes?v` in Kibana dev console

---

<div class="post-metadata">

### Author: ![Sakshi\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakshi_srivastava/32/45707_2.png) [@Sakshi\_Srivastava](https://discuss.elastic.co/u/Sakshi_Srivastava)
#### Post date: [May 8, 2019, 6:11am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/3 "2019-05-08T06:11:27Z")

</div>

I am unable to start the second node. Could you guide me how to start another node from same directory?

---

<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: [May 8, 2019, 7:02am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/4 "2019-05-08T07:02:00Z")

</div>

Is it for test purposes?

---

<div class="post-metadata">

### Author: ![Sakshi\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakshi_srivastava/32/45707_2.png) [@Sakshi\_Srivastava](https://discuss.elastic.co/u/Sakshi_Srivastava)
#### Post date: [May 8, 2019, 10:26am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/5 "2019-05-08T10:26:24Z")

</div>

Yes, it is. I am trying to understand how elasticsearch works and unable to create two nodes from same directory.

---

<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: [May 8, 2019, 11:09am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/6 "2019-05-08T11:09:22Z")

</div>

So first of all you don't need to worry about the fact the cluster is `yellow` then.

If you want to make it green, you can set the number of replicas to 0 instead of 1.  
If you want to test how replication works on your machine, you need to either create a brand new directory for the new node or you can set the following in `elasticsearch.yml`:

```auto
node.max_local_storage_nodes: 2

```

---

<div class="post-metadata">

### Author: ![Sakshi\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakshi_srivastava/32/45707_2.png) [@Sakshi\_Srivastava](https://discuss.elastic.co/u/Sakshi_Srivastava)
#### Post date: [May 8, 2019, 11:33am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/7 "2019-05-08T11:33:30Z")

</div>

This works for me!  
Thanks!

---

<div class="post-metadata">

### Author: ![Sakshi\_Srivastava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sakshi_srivastava/32/45707_2.png) [@Sakshi\_Srivastava](https://discuss.elastic.co/u/Sakshi_Srivastava)
#### Post date: [May 21, 2019, 8:38am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/8 "2019-05-21T08:38:52Z")

</div>

Hello ,  
How do I copy the aggregated data of an index to another index in elasticsearch?

---

<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: [May 21, 2019, 8:55am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/9 "2019-05-21T08:55:21Z")

</div>

This is not related. Please open a new question.

---

<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: [June 18, 2019, 8:55am UTC](https://discuss.elastic.co/t/cluster-health-set-to-yellow/179934/10 "2019-06-18T08:55:28Z")

</div>

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