thecodeteam / mesos-module-dvdi

Mesos Docker Volume Driver Isolator module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

question: what is the volume life cycle

osallou opened this issue · comments

Docker volume plugin has Create/Mount/Unmount/Delete operations.

Will all those methods be called on container startup/destroy ? At which step of the mesos container life cycle?

Thanks

Hi,

When the a request for a volume is made, the following will take place:

  1. if the volume doesnt exist by name, the volume will be created with the give attributes and then mounted.
  2. if the volume already exists, all the assoicated "create" parameters will be ignored and the volume will be mounted.

When the mesos task is destroyed, the volume will simply be unmounted. This facilitates reuse of the volume for specific use cases. For example, if the slave node fails, the task can be brought up another node with its data intact.

Delete is never called. Clean up can be done out of band or on the create, you can overwrite the existing filesystem effectively wiping the data.

Hi osallou,

Does this sufficient answer your questions? May I close this issue out?

Thanks!

You can close the issue, thanks

Le dim. 31 janv. 2016 18:10, David vonThenen notifications@github.com a
écrit :

Hi osallou,

Does this sufficient answer your questions? May I close this issue out?

Thanks!


Reply to this email directly or view it on GitHub
#62 (comment)
.

No problem. If you have any other questions, you can stop by our codecommunity.slack.com channel and join #mesos.