I have small 2-node cluster
node1 is "always on" and placed on production server
node2 is "sometimes on" and placed on notebook for developing proposes
they both have simple unicast config
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: [ "other node IP" ]
- so node2 is very often offline from node1
- node1 is USUALLY master, but SOMETIMES node2 elected as master
Usually node1 has newer data than node2, after connecting all shards are syncronized from node1 to node2 and it's OK
But if node1 has newer data they simply lost. If occasionally node1 became master it can kill new data on production
I cannot set node.master : false on notebook because it became not-working offline from node1.
Is there way to setup master-master synchronization behavior with optimictic merging of documents in index (newer wins)?
May be i must have additional 3d node.data: false, node.master:true node in the middle?
So what i have to do?