I'm setting up a test system for self-teaching about load balancing and high availability and I'm curious about a configuration setting in Corosync and would like to know what you guys who have experience in it, have to say.
The thing I'm researching and learning now is Corosync vote-quorum and how to deal with fallen nodes. During a small research session I found talk about STONITH and split-brain scenarios where both nodes will asume it is the sole survivor, and thinks its the master, attempts to stay master etc. This is ofcourse an unwanted scenario.
In Corosync configuration I saw a specific configuration:
quorum {
...
auto_tie_breaker: 1
auto_tie_breaker_node: lowest
}
Could the auto_tie_breaker prevent such a split-brain scenario, or am I mistaken?
If I understood the documentation right, setting it to lowest, means that the node with the lowest nodeid would be the one in charge?
nodelist {
node {
ring0_addr: primary_private_ip
name: primary
nodeid: 1
}
node {
ring0_addr: secondary_private_ip
name: secondary
nodeid: 2
}
}
Of course, I'm only testing on a two-node cluster at the moment, but aiming to get an understanding of how the process works, so I can successfully set up a more reliable infrastructure in the future.
Thanks for input and guidance and have a great day! :)