If you have 2 nodes, minimum_master_nodes should be set to 2. This means that if one node goes down or the two nodes are partitioned off, you will be able to search but not index any more documents. If you need high write availability, you need 3 nodes, but that can be two master/data nodes and a small, dedicated master node.