Repository: mesos
Updated Branches:
  refs/heads/master fe30f3db7 -> d643cf634


Added DiskInfo to the Resource protobuf.

Review: https://reviews.apache.org/r/27550


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/d643cf63
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/d643cf63
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/d643cf63

Branch: refs/heads/master
Commit: d643cf6344dd7f1d2f38baf52529e7e8557dbdff
Parents: fe30f3d
Author: Jie Yu <[email protected]>
Authored: Tue Nov 18 11:58:58 2014 -0800
Committer: Jie Yu <[email protected]>
Committed: Thu Nov 20 12:40:19 2014 -0800

----------------------------------------------------------------------
 include/mesos/mesos.proto | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/d643cf63/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 3b52a71..11ac2ac 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -388,6 +388,40 @@ message Resource {
   optional Value.Ranges ranges = 4;
   optional Value.Set set = 5;
   optional string role = 6 [default = "*"];
+
+  message DiskInfo {
+    // Describes a persistent disk volume.
+    // A persistent disk volume will not be automatically garbage
+    // collected if the task/executor/slave terminates, but is
+    // re-offered to the framework(s) belonging to the 'role'.
+    // A framework can set the ID (if it is not set yet) to express
+    // the intention to create a new persistent disk volume from a
+    // regular disk resource. To reuse a previously created volume, a
+    // framework can launch an task/executor when it receives an offer
+    // with persistent volume, i.e., ID is set.
+    // NOTE: Currently, we do not allow a persistent disk volume
+    // without reservation (i.e., 'role' should not be '*').
+    message Persistence {
+      // A unique ID for the persistent disk volume.
+      // NOTE: The ID needs to be unique per role on each slave.
+      required string id = 1;
+    }
+
+    optional Persistence persistence = 1;
+
+    // Describes how this disk resource will be mounted in the
+    // container. If not set, the disk resource will be used as the
+    // sandbox. Otherwise, it will be mounted according to the
+    // 'container_path' inside 'volume'. The 'host_path' inside
+    // 'volume' is ignored.
+               // NOTE: If 'volume' is set but 'persistence' is not set, the
+               // volume will be automatically garbage collected after
+               // task/executor terminates. Currently, if 'persistence' is set,
+               // 'volume' must be set.
+    optional Volume volume = 2;
+  }
+
+  optional DiskInfo disk = 7;
 }
 
 

Reply via email to