You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jp...@apache.org on 2017/10/15 22:48:48 UTC

[4/9] mesos git commit: Added the TaskResourceLimitation message.

Added the TaskResourceLimitation message.

Added the TaskResourceLimitation message.

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


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

Branch: refs/heads/master
Commit: f3ee9234f645cec540f4387f3ea7f4870b810606
Parents: 7d9781f
Author: James Peach <jp...@apache.org>
Authored: Sun Oct 15 15:21:38 2017 -0700
Committer: James Peach <jp...@apache.org>
Committed: Sun Oct 15 15:21:38 2017 -0700

----------------------------------------------------------------------
 include/mesos/mesos.proto    | 12 ++++++++++++
 include/mesos/v1/mesos.proto | 12 ++++++++++++
 2 files changed, 24 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f3ee9234/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 2379c2e..1d346d8 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2125,6 +2125,18 @@ enum TaskState {
 
 
 /**
+ * Describes a resource limitation that caused a task failure.
+ */
+message TaskResourceLimitation {
+  // This field contains the resource whose limits were violated.
+  //
+  // NOTE: 'Resources' is used here because the resource may span
+  // multiple roles (e.g. `"mem(*):1;mem(role):2"`).
+  repeated Resource resources = 1;
+}
+
+
+/**
 * Describes the status of a check. Type and the corresponding field, i.e.,
 * `command` or `http` must be set. If the result of the check is not available
 * (e.g., the check timed out), these fields must contain empty messages, i.e.,

http://git-wip-us.apache.org/repos/asf/mesos/blob/f3ee9234/include/mesos/v1/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index c3581b5..5049b8f 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2106,6 +2106,18 @@ enum TaskState {
 
 
 /**
+ * Describes a resource limitation that caused a task failure.
+ */
+message TaskResourceLimitation {
+  // This field contains the resource whose limits were violated.
+  //
+  // NOTE: 'Resources' is used here because the resource may span
+  // multiple roles (e.g. `"mem(*):1;mem(role):2"`).
+  repeated Resource resources = 1;
+}
+
+
+/**
 * Describes the status of a check. Type and the corresponding field, i.e.,
 * `command` or `http` must be set. If the result of the check is not available
 * (e.g., the check timed out), these fields must contain empty messages, i.e.,