Master, with this config: node.master: true node.data: true
it sits on a machine with 8 GB RAM and one TB space (I know there's not enough RAM, we're waiting for it to be purchased)
second node, with this config: node.master: false node.data: true
it sits on a machine with 32 GB RAM and one TB space.
I need an advice, should I change the second node to be my master or not?
And if I do make the change, what will happen to the data the current master node?
Shards that may or may not exist on either node. Here it's probably better to just have a single master.
There's a copy of every shard on both nodes. Here it may make sense to run two masters for HA however you have to be aware of the possibility of a split brain if for some reason the two nodes get partitioned at the network level.
I'd recommend option 3, get a third node so you can set minimum_master_nodes to 2. Failing that if it were me I'd probably stick with a single master as cleaning up a split brain scenario wouldn't be fun.
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.