HomeClusterLabs Projects

galera: fix the first bootstrap when cluster has no data

Description

galera: fix the first bootstrap when cluster has no data

The resource agent selects the first node to go into Master state
based on the biggest commit version found on each node. If case no
data were written yet into the galera cluster, the current node is
selected as a "fallback" node to bootstrap the cluster.

The way the "fallback" node is selected is wrong because every node
takes a different decision, and this ultimately yields to 3
single-node galera clusters being started. To fix that, let the
"fallback" node be the last one in the wsrep_cluster_address, so that
the selection algorithm yields coherent results across nodes.

Details

Provenance
Damien Ciabrini <dciabrin@redhat.com>Authored on Mar 3 2017, 9:31 AM
Parents
rR4253b1e432b8: Merge pull request #937 from scream314/master
Branches
Unknown
Tags
Unknown

Event Timeline