# Elastic Search - Node failures

**URL:** <https://discuss.elastic.co/t/elastic-search-node-failures/233759>\
**Category:** Elasticsearch\
**Created:** [May 21, 2020, 2:52pm UTC](https://discuss.elastic.co/t/elastic-search-node-failures/233759 "2020-05-21T14:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nages](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nages/32/46943_2.png) [@nages](https://discuss.elastic.co/u/nages)\
**Post date:** [May 21, 2020, 2:52pm UTC](https://discuss.elastic.co/t/elastic-search-node-failures/233759/1 "2020-05-21T14:52:40Z")

</div>

As I understand from the documentation, when a node goes down, elastic search _automatically_ creates primary or replica shards on all other nodes to address the failure of the node.

However, what happens if the nodes comes up - will those shards are "automatically" removed created on other node as the machine comes up - say , in a cluster with _3 nodes_ , node 1 which contains 1 primary shard of _index 1_ , and one replica shard of _index 2_ . If node 1 goes down, the ES _automatically_ creates the primary shard , replica shard in either of the available nodes

---

<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:** [May 22, 2020, 3:50am UTC](https://discuss.elastic.co/t/elastic-search-node-failures/233759/2 "2020-05-22T03:50:14Z")

</div>

[This section](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/distributed-cluster.html) is quite old but as far as I can tell still valid, and [this blog post](https://www.elastic.co/blog/every-shard-deserves-a-home) may also be quite useful.

---

<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 19, 2020, 3:50am UTC](https://discuss.elastic.co/t/elastic-search-node-failures/233759/3 "2020-06-19T03:50:33Z")

</div>

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