In the basic concepts, it is mentioned about the number of default 5 shared and 1 replica get created for an index, and if their are 2 nodes in an index, it creates 5 shared and 5 replica. What combination does all 5 replica have?
You set the number of shards and replicas per index. If you set an index to have 5 shards and 1 recplica, meaning that for every primary shard there is 1 replica shard so in total you will have 5 replicas. Now if you have 2 nodes, the 5 primary and 5 replicas will be distributed around the 2 nodes. If you have 3 nodes, the same 5 primary and 5 replicas shards will be distributed evenly around the 3 nodes.
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.