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
If node2 is restarted accidentally then how to 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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.