I am trying to build my first cluster on elasticsearch and I do have few queries regarding the same.
My retention period will be around 6-8 months
I am thinking of 2 elastic nodes
So in a cluster, per my understanding, I need at least one master node and one data node. since I am planning to use 2 nodes. Can I make both one node as
master and data while other as data only?
OR both the nodes as master and data? OR I need to have 3 nodes only to make a complete cluster?
For me, data redundancy is primary hence would really appreciate if someone can help me on this?
You need three master-eligible nodes and two data nodes in order to achieve redundancy. Each node can be both a data node and a master-eligible node (that's the default) so this means the smallest resilient cluster contains three nodes: two mixed master-data nodes and one dedicated master node. You can theoretically make the dedicated master node smaller and cheaper than the two data nodes as long as you do not send it any indexing or search traffic, but in practice it's often simpler to have three identical mixed data/master 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.