Hi All,
I was playing around with galera cluster. My cluster went into a split brain. I have a logic for choosing the leader, the node which can start as seed.
The logic is like:
if (is_leader or safe_to_bootstrap)
you are elected as leader
end
is_leader: node with the leading sequence number(GTID)
But this condition is incorrect, as there can be multiple seeds. I needed a suggestion on what to prioritize: Sequence number or safe_to_bootstrap flag?
Thanks,
Puneet