Replies: 1 comment 1 reply
-
How do you make sure the service that is using the volume you want to back up is placed on the correct node? I'd probably pick the same approach for the backup service. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! Wondering if anyone can give me some pointers on running this tool in a multi-node swarm. I've read through the docs (specifically mentioning swarm mode) but didn't find any exact answers.
Given that volumes exist only on the docker node where a service replica is running, and service replicas can be assigned to whatever nodes have availability (and meet constraints) - what could I do to use this tool to effectively scale backups of service volumes?
A minimal example of a stack that shows this behavior is below:
Assuming I have nodes
a
andb
in the swarm, I saw that thefoo
service container was replicated on nodea
, and thebar
service container was replicated on nodeb
.I can think of a few (non-optimal) ways to do this
N
services xM
nodes)swarm-cronjob
to run global replicas ofdocker-volume-backup
that dynamically scrapes and backs up volumes based on a whitelist (whitelist has to be maintained)I realize this gets pretty close into the evergreen issue of Docker Swarm shared volumes, but looking for ways around this for my current infrastructure.
Appreciate any help - really interested in this tool!
Beta Was this translation helpful? Give feedback.
All reactions