Master node writes to only one data node use case

Hi

I'm having three nodes one acts as master and two as data nodes. I need to ensure high availability. I want master to write data only to one node, say node A and other node will be only read-only node, node B. But if node A goes down, I prefer node B to be changed to write node and get the data, till node A comes up.
Ideally I need my data to be written to one node, which is active

Is it possible???

Regards
Ram

Elasticsearch does not work that way. If you want high availability you need to make all nodes master eligible as a minimum of 3 master eligible nodes is required. If you are on a version prior to 7.x you also need to set minimum_master_nodes to 2. Then make sure all indices have one replica configured and Elasticsearch will take care of the rest. You can read and write to any data node.

In that case, whether data will be spread across nodes?? means should I worry that fallen node data will not be visible in kibana??

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.