Elastic search cluster restart

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

Did you change elasticsearch settings? Which ones?

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

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

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

logs and configuration

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.

It need to have the IP of the master node in its discovery.zen.ping.unicast.hosts. See the documentation for further details.

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.

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