Demonstrates provisioning a Docker Swarm cluster with 3 manager nodes and HA volumes shared across all nodes using Gluster and Docker bind mounts.
- Run
vagrant up
- Run
sh /data/gluster-server.sh
on gluster1 - Run
sh /data/gluster-client.sh
on manager1, worker1, worker2 - Run
sh /data/docker-service-add.sh
on manager1
- Go to
http://192.168.56.90:3000
orhttp://192.168.56.91:3000
orhttp://192.168.56.92:3000
- Create a Prometheus datasource in Grafana using URL:
http://172.17.0.1:9090
(172.17.0.1
is thedocker0
interface on each node in the swarm) - From host machine execute:
vagrant halt manager1
- Go to:
http://192.168.56.91:3000
orhttp://192.168.56.92:3000
. Notice datasource is still persistent.