You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ya...@apache.org on 2016/07/12 23:12:43 UTC
[2/3] mesos git commit: Added a capability to opt-in to receive
shared resources in offers.
Added a capability to opt-in to receive shared resources in offers.
Note that this just adds the capability to the protos. The
functionality for shared resources will be added in future commits.
Review: https://reviews.apache.org/r/49967/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fbc4a303
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/fbc4a303
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/fbc4a303
Branch: refs/heads/master
Commit: fbc4a303224cfeced5c8956d5cf5d28965a85a67
Parents: 45fcfc6
Author: Anindya Sinha <an...@apple.com>
Authored: Tue Jul 12 16:07:34 2016 -0700
Committer: Jiang Yan Xu <xu...@apple.com>
Committed: Tue Jul 12 16:11:56 2016 -0700
----------------------------------------------------------------------
include/mesos/mesos.proto | 4 ++++
include/mesos/v1/mesos.proto | 4 ++++
2 files changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/fbc4a303/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 3e274b0..7cd1e57 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -288,6 +288,10 @@ message FrameworkInfo {
// TODO(bmahler): As we add revocation we can relax the
// restriction here. See MESOS-5634 for more information.
GPU_RESOURCES = 3;
+
+ // Receive offers with resources that are shared.
+ // TODO(anindya_sinha): This is currently a no-op.
+ SHARED_RESOURCES = 4;
}
// Enum fields should be optional, see: MESOS-4997.
http://git-wip-us.apache.org/repos/asf/mesos/blob/fbc4a303/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 32159b1..f915989 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -288,6 +288,10 @@ message FrameworkInfo {
// TODO(bmahler): As we add revocation we can relax the
// restriction here. See MESOS-5634 for more information.
GPU_RESOURCES = 3;
+
+ // Receive offers with resources that are shared.
+ // TODO(anindya_sinha): This is currently a no-op.
+ SHARED_RESOURCES = 4;
}
// Enum fields should be optional, see: MESOS-4997.