How to decide on number of Master and data nodes between two data centers

Hi All,

We have a total of 8 servers (4 in each data center), running ELK 7.6.2 stack.

How can we decide on the number of Master (or Master-eligible) nodes and data nodes?

Please help

In order to deploy a highly available cluster you need three independent zones/data centres. What are your requirements and use case?

Thanks. As the servers are split in two different data centers we want resilience so that in case of failure of the entire production data center we should have our cluster functioning well in the disaster recovery environment.

Looks like the recommendation is to limit the number of master-eligible nodes in the cluster to three. How do we spread the three nodes across two data centers and what should be the expectation in case of loss of servers in one data center?

You can not achieve high availability with only two data centres as one of them must contain a majority of the 3 master eligible nodes and therefore will result in a failed cluster if it goes down. You need at least a dedicated master node in a third data center to act as an arbiter. Have a look at the docs I linked to for further details.

Thanks.

Can we not have 2 masters in one data center and 1 on the other? In the event of one side going down we will have master (s) available. Our cluster contains servers spread in two data centers

You always need a strict majority of master eligible nodes available for a fully operational cluster. If you lose the data centre with 2 master eligible nodes the cluster can no longer elect a master and is no longer available. If the data centre with only one master eligible node was lost you would however be fine. This is why three zones are required for high availability.

Thanks for the clarification.

So this arbiter can only be one Master eligible node in a third date center?

This is how the whole picture would be then:

Data Center 1 => 4 nodes (2 Master eligible + 2 data)

Data Center 2 => 4 nodes (1 Master eligible + 3 data)

Data Center 3 => 1 node (Master eligible) acting as arbiter

Please advise and correct the picture above as appropriate.

Also does the arbiter master node require any special configuration or is it just another master node? The link you posted doesn't tell much about the arbiter.

Thanks

Each of the two data centers would have 1 master eligible nodes plus dedicated data nodes. The node in the third zone is often made a dedicated master node, possibly voting only, as this allows it to be deployed with limited resource requirements.

Thanks @Christian_Dahlqvist

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