am looking to put together a simple failover setup.
Have 2 nodes, 1 shard , 1 replica.
only departure from the elasticsearch.yml defaults are
The index increments, eg if we have an index called "index_v1", then on re-indexing it is updated to "index_v2" (and the "index_v1" folder is removed from "C:\Elasticsearch\data\mycluster\nodes\0\indices.
Issue I have is.
1- node1(master) and node2 both have index "index_v1"
2 - node1 fails. node2 becomes master.
3 - automated re-indexing kicks in and node2 updates to "index_v2"
4 - restart node1.
5 - node1 and node2 communicate and we end up with "index_v1" and "index_v2" on each node (!)
My questions are...
a) is this the expected behaviour?
b) is there any way to have node1 update to the latest index, so we end up with just "index_v2 " on both nodes after a recovery?
Thanks for all and any help.