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 103 forks source link

Persistence #1

Closed BarnumD closed 7 years ago

BarnumD commented 7 years ago

How do you deal with data persistence? For instance, if the docker service and/or container goes away (docker service rm) where does the data live? How does the cluster recover?

colinmollenhour commented 7 years ago

If you specify the volume in docker service create then it would be persisted at whatever source you specified. However, I don't think you should ever need to docker service rm unless you want to tear down the cluster since there is an update command.