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

question about the bootstraping #26

Closed zhjchen closed 6 years ago

zhjchen commented 6 years ago
$ docker stack deploy -c docker-compose.yml galera
$ docker service ls
(wait for `galera_seed` to be healthy)
$ docker service scale galera_node=2
(wait for both `galera_node` instances to be healthy)
$ docker service scale galera_seed=0

Why set the galera_seed to 0 in the end ?

colinmollenhour commented 6 years ago

Because the seed is for starting a new cluster and if it gets rebooted somehow you don't want it starting a new cluster, you want the cluster to be recovered which is done only for the "node" instances.