Elastic search cluster restart


(Gangireddy L) #1

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


(David Pilato) #2

Did you change elasticsearch settings? Which ones?


(Gangireddy L) #3

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


(David Pilato) #4

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


(Gangireddy L) #5

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


(David Pilato) #6

logs and configuration


(Gangireddy L) #7

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.


(Christian Dahlqvist) #8

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.


(system) #9

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