Hi folks,
We recently started using Galera Cluster 3 as means to make our MySQL data layer more robust. We initially set up a 2 node cluster, but soon found out we needed to avoid split-brain situations....so we conduct our research and test-drive different approaches, reading through the documentation and knowledge base was very helpful indeed.
We tried the following:
a- 2 nodes using pc.weight=2 parameter on one of the nodes so that quorum is achieved when such node is up and running
Option a is sub-optimal solution because you may end up with a second node up and no quorum. Option b didn't work at all since you can never achieve quorum having total weight of 2+2.
To the best of our knowledge, the proper approach to avoid split-brain seems to be using a third node with arbitrator. Would appreciate your kind advice on this subject.
Also, wanted to point out that the good quality material in the documentation, tutorials and KB helped us a lot in the process. "Two-Node Clusters" article seems somewhat misleading though.
Greetings,
--patricio