The Node 3 (just master, not data) should be dedicated master or dedicated voting-only master ???
When I see the shard distribution on both data nodes (nodes 1 and 2), I can see a shard balancind around 20%, I say Node 1 has 80% primary shards and 20% replica shards, and Node 2 has 20% primary shards and 80% replica shards. I've supposed the shard distribution should be 50% primary and 50% replica in each nodes. Can you explain to me?
The most pressing problem with your cluster is that you only have 2 master eligible nodes so you should change this to make all off them master eligible. You always need at least 3 master eligible nodes in a cluster for HA.
Shards can be changed from primary to replica at any time to the distribution you describe is not at all problematic. Primary and replica shards generally do the same work.
One of the three can be a dedicated master node that is voting only but both data nodes also need to be master eligible. Read this for further details.
Christian, after reading the doc you sent me, I noticed I can have a two node cluster + a voting_only node (totally 3 nodes) because it's the smallest cluster we can have in production environment, as I have now:
So is this OK? Because I have two master/data nodes + a tiebraker voting_only node. If tcommunication betwwen node 1 aand 2 is broken, the voting only node decide the master.
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.