# Advice on nodes replicas and shards

**URL:** <https://discuss.elastic.co/t/advice-on-nodes-replicas-and-shards/40131>\
**Category:** Elasticsearch\
**Created:** [January 26, 2016, 3:15pm UTC](https://discuss.elastic.co/t/advice-on-nodes-replicas-and-shards/40131 "2016-01-26T15:15:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayasha88](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@ayasha88](https://discuss.elastic.co/u/ayasha88)\
**Post date:** [January 26, 2016, 3:15pm UTC](https://discuss.elastic.co/t/advice-on-nodes-replicas-and-shards/40131/1 "2016-01-26T15:15:47Z")

</div>

Hi,  
I have this error in kibana `Courier Fetch: 37 of 245 shards failed.` even 5 or 6 times at one, after some research I have found that could be due to the number of replicas.  
So I run the cluster health and this is the result

`{ "cluster_name": "elasticsearch", "status": "yellow", "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes": 1, "active_primary_shards": 316, "active_shards": 316, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 316, "delayed_unassigned_shards": 0, "number_of_pending_tasks": 0, "number_of_in_flight_fetch": 0, "task_max_waiting_in_queue_millis": 0, "active_shards_percent_as_number": 50, "indices": { "log-2015.12.20": { "status": "yellow", "number_of_shards": 5, "number_of_replicas": 1, "active_primary_shards": 5, "active_shards": 5, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 5 }, "log-2015.12.21": { "status": "yellow", "number_of_shards": 5, "number_of_replicas": 1, "active_primary_shards": 5, "active_shards": 5, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 5 }, ... }`

And is always like this for all my indices log-\* until now log-2016.01.26. I don't know what could be the best solution for me. Should I add another node on another server?  
Thanks

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [January 26, 2016, 3:22pm UTC](https://discuss.elastic.co/t/advice-on-nodes-replicas-and-shards/40131/2 "2016-01-26T15:22:59Z")

</div>

As you have a single node, Elasticsearch will not be able to assign the replicas, which means the index state will be yellow. You can change this through [update index settings API](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html). How much memory and heap space do you have for your node?

---

<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 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/advice-on-nodes-replicas-and-shards/40131/3 "2017-07-05T23:21:23Z")

</div>


