Hi tim, Thanks for your response.
Yes i'm fully aware that mesos currently doesn't solve the distributions of volumes with docker. In my use case i'm running a small cluster with 5-10 nodes, my goal is to also be able to run long running statefull databases on this cluster. For this i obviously need some way to persit the data of the containers. My idea was to create docker data only containers and run a cron job on each machine to export the docker data only volume containers an back them up, so i could (manually/with a script) restore a container on another machine with the same data. To prevent data loss the databases are replicated on mulitiple nodes. For the data restore i would need the docker "--volumes-from" option to import a data only container .Backing up multiple host mapped volumes seems to messy but would probably also work. For the part with persistent resources that you talked about, how would this benefit me in my use case ? And how can i control that a task is relaunched on the same host ? In marathon there is a feature called Constrains, should i leverage that ? Again thanks for your help , and great work so far :) 2014-10-20 22:24 GMT+02:00 Tim Chen <[email protected]>: > Hi Haessig, > > We didn't implement linking or volumes-from since any docker feature that > is requiring from another docker container needs more work than just > exposing these options since the other container might be in another slave > that the docker container is going to be launched with. > > The way we're currently thinking about volumes in general in Mesos, is > that we're not trying to move your volumes to another slave, but instead > try to launch any tasks that wants to re-use those volumes in the same > slave. That is one big part of what the persistent resources work that is > going on. > > Unless you're hoping Mesos can replicate your volumes for you, if you have > a attached NAS to a set directory you can always mount volumes from a > shared directory. > > At the current state we don't have a volumes story with docker yet, but > like to get more use cases and see what's a good feasible option for us. > > About the sandbox, we mount the sandbox as a convenience for the user as > all the files that are downloaded for that task is stored in the sandbox, > so if the container wants to access it it can look at the volume that is > mounted. > > Tim > > > > On Mon, Oct 20, 2014 at 1:16 PM, Haessig Michael < > [email protected]> wrote: > >> I have successfully setup a Mesos Marathon Cluster running in HA mode. >> >> I can start docker instances, i also know how to map a host volume path >> to docker volumes. >> >> I'm looking for a way to persist some docker volumes in a more portable >> way. I'm thinking about a Docker Volume Container. But by looking at the >> sourcecode of the mesos docker integration >> >> >> https://github.com/apache/mesos/blob/880c5a362d1c106c4f0758ed88d44db1a3053dda/src/docker/docker.cpp#L328 >> >> i can see that the docker parameter --volumes-from is not implemented. >> >> how do you guys use docker volumes trough mesos ? is there a better way ? >> i want the volumes to be able to be ported to another slave to restart >> the job there with the same data. >> >> >> Another question about the mesos docker code, >> https://github.com/apache/mesos/blob/880c5a362d1c106c4f0758ed88d44db1a3053dda/src/docker/docker.cpp#L349 >> >> here at line 349 mesos mapps the sandbox directory to the container ? >> what is the purpouse of this ? >> >> any more information or help is more than welcome, thanks in advance :) >> > >

