colinmollenhour / mariadb-galera-swarm

MariaDb Galera Cluster container based on official mariadb image which can auto-bootstrap and recover cluster state.
https://hub.docker.com/r/colinmollenhour/mariadb-galera-swarm
Apache License 2.0
217 stars 102 forks source link

How to get back when all node down #27

Closed zhjchen closed 6 years ago

zhjchen commented 6 years ago

Running two galera_node in docker swarm, set galera_node to use host directories. So the data is persistent.

However when both galera_node containers went down, need to start galera_seed to initialize new cluster. galera_seeds was intentionally down, So galera_seed does not have latest data.

When the galera_nodes join the new cluster, they sync data with galera_seed, so galera_node lost the latest data. Any suggestion ?

colinmollenhour commented 6 years ago

You should replace the galera "seed" with a "node" which uses the same data volume so that they are one and the same.