While reading about Elasticsearch I understood that Nodes have Shards. And we can make configuration for Primary and Replica Shards. If one of node goes down it retrieve data from replica shards which is in another node.
But I want to understand more, What If all nodes goes down, How it will recover Or How we can recover data.?? Is there any Backup strategy ??
Hi @dadoonet thanks, I tried it is working fine as you said. But, What if Disk failure occurred. Is there any Backup strategy given by Elasticsearch for disk. Or we should take Manually Backup of the disk?? Or What is the best practice we should follow for Production Environment ??
Have a hard disk failure on a replica and at a same time on a primary is pretty much uncommon, but let say you are really unlucky. You can do many things:
increase the number of replicas if you want to take less risks that your data is not available online anymore. So now, to make it fail, you need to have not only 2 hard disk crash but 3, 4, 5 or more... It comes at the cost of disk space usage of course.
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.