# Elastic search cluster restart

**URL:** <https://discuss.elastic.co/t/elastic-search-cluster-restart/130786>\
**Category:** Elasticsearch\
**Created:** [May 7, 2018, 7:00am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786 "2018-05-07T07:00:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![gangireddy\_l](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gangireddy\_l](https://discuss.elastic.co/u/gangireddy_l)\
**Post date:** [May 7, 2018, 7:00am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/1 "2018-05-07T07:00:49Z")

</div>

Hi,

I configured elastic search cluster with 2 nodes one is master and data node , second node is data node.Node 1 contains primary shards and Node 2 contains replica shards.  
my question is

1. If node2 is restarted accidentally then how to connect it to cluster.  
2.What happens to replica shards if node2 fails.

Thanks  
gangireddy

---

<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, 2018, 7:17am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/2 "2018-05-07T07:17:22Z")

</div>

Did you change elasticsearch settings? Which ones?

---

<div class="post-metadata">

**Author:** ![gangireddy\_l](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gangireddy\_l](https://discuss.elastic.co/u/gangireddy_l)\
**Post date:** [May 7, 2018, 7:21am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/3 "2018-05-07T07:21:00Z")

</div>

Actually my node2 server is down due to some issue.Then again I restarted server and after restart cluster is not able to identify node2

---

<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, 2018, 7:49am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/4 "2018-05-07T07:49:41Z")

</div>

Share the logs and configuration I asked for if you need help. Please format your code with \</\> icon and check with the preview window.

---

<div class="post-metadata">

**Author:** ![gangireddy\_l](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gangireddy\_l](https://discuss.elastic.co/u/gangireddy_l)\
**Post date:** [May 7, 2018, 7:53am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/5 "2018-05-07T07:53:18Z")

</div>

sorry David i can't get u ,which code i need to format.

---

<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, 2018, 8:13am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/6 "2018-05-07T08:13:05Z")

</div>

logs and configuration

---

<div class="post-metadata">

**Author:** ![gangireddy\_l](https://avatars.discourse-cdn.com/v4/letter/g/c89c15/32.png) [@gangireddy\_l](https://discuss.elastic.co/u/gangireddy_l)\
**Post date:** [May 7, 2018, 8:17am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/7 "2018-05-07T08:17:02Z")

</div>

logs are fine and problem with cluster that too nodes.

1.If node2 is restarted accidentally then how it will automatically connect it to cluster.  
2.What happens to replica shards if node2 fails.

---

<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 7, 2018, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/8 "2018-05-07T08:22:29Z")

</div>

> [@gangireddy\_l](#):
>
> 1.If node2 is restarted accidentally then how it will automatically connect it to cluster.

It need to have the IP of the master node in its `discovery.zen.ping.unicast.hosts`. See [the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/modules-discovery-zen.html#unicast) for further details.

> [@gangireddy\_l](#):
>
> 2.What happens to replica shards if node2 fails.

As you only have 2 nodes they will remain unassigned. When the node comes back up, the master node will make sure they are up to date, which may require them to be replaced by a copy of the primary shard.

---

<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 4, 2018, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-cluster-restart/130786/9 "2018-06-04T08:22:36Z")

</div>

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