[ 
https://issues.apache.org/jira/browse/MESOS-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14743761#comment-14743761
 ] 

Anindya Sinha edited comment on MESOS-3421 at 9/15/15 9:47 PM:
---------------------------------------------------------------

I am proposing the following for persistent volumes to be shared across task 
containers:

i) Added a "optional bool shared" to the "Persistence" section of the protobuf 
Resource.DiskInfo. It defaults to false which means it retains the current 
behavior. Setting this to "true" when CREATE/DELETE of volumes is done would 
mark them as sharable persistent volumes.
ii) All persistent volumes that are sharable shall be offered to the 
corresponding framework(s) matching the "role" (even if a task used this volume 
in its task constraint). Tasks should be therefore be able to use this resource 
in its task constraint to schedule tasks on the same slave.

The idea is to maintain the list of "shared" persistent volumes, and offer them 
to the appropriate frameworks as valid resources inspite of this being assigned 
to a scheduled task on that agent node.



was (Author: anindya.sinha):
I am proposing the following for persistent volumes to be shared across task 
containers:

i) Added a "optional bool shared" to the "Persistence" section of the protobuf 
Resource.DiskInfo. It defaults to false which means it retains the current 
behavior. Setting this to "true" when CREATE/DELETE of volumes is done would 
mark them as sharable persistent volumes.
ii) All persistent volumes that are sharable shall be offered to the 
corresponding framework which own these persistent volumes (even if a task used 
this volume in its task constraint). Tasks should be therefore be able to use 
this resource in its task constraint to schedule tasks on the same slave.

The idea is to maintain the list of "shared" persistent volumes, and offer them 
to the appropriate frameworks as valid resources inspite of this being assigned 
to a scheduled task on that agent node.


> Support sharing persistent volumes across task instances
> --------------------------------------------------------
>
>                 Key: MESOS-3421
>                 URL: https://issues.apache.org/jira/browse/MESOS-3421
>             Project: Mesos
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 0.23.0
>            Reporter: Anindya Sinha
>            Assignee: Anindya Sinha
>
> A service that needs persistent volume needs to have access to the same 
> persistent volume (RW) from multiple task(s) instances on the same agent 
> node. Currently, a persistent volume once offered to the framework(s) can be 
> scheduled to a task and until that tasks terminates, that persistent volume 
> cannot be used by another task.
> Explore providing the capability of sharing persistent volumes across task 
> instances scheduled on a single agent node.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to