I have 6 nodes elastic cluster.
node1 - master
node2 - master
node3 - data
node4 - data
node5 - data
node6 - master, data
node1,2,3,4 and node5 are primary nodes
node6 is DR node
I want to all primary nodes and start with DR node.
I was unable to up the cluster with one node. Got error ''master not discovered or elected yet, an election requires at least 2 nodes''
is there way to up the cluster with only DR node.?
No that is not possible. A majority of master eligible nodes need to be available for the cluster to operate properly. See the docs for further details. The arrangement you are describing will therefore not work.
No, you can only add new master nodes if the cluster has an elected master, which requires a majority of master eligible nodes are available. If you want a DR cluster I would recommend setting up 2 separate clusters and either restoring a snapshot or write to both clusters in parallel.
There's no notion of "primary" and "DR" nodes in Elasticsearch but this is the wrong way to think about building a resilient cluster. A properly configured cluster can carry on working even if the underlying infrastructure suffers a severe outage, possibly even losing a whole zone of its nodes all at once. The reference manual has comprehensive guidance on this subject.
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.