You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gy...@apache.org on 2017/02/09 00:29:34 UTC
mesos git commit: Updated Suppress and Revive proto to support per
role.
Repository: mesos
Updated Branches:
refs/heads/master 973abd043 -> 748675352
Updated Suppress and Revive proto to support per role.
Updated Suppress and Revive proto to support per role.
Review: https://reviews.apache.org/r/56327/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/74867535
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/74867535
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/74867535
Branch: refs/heads/master
Commit: 748675352964ccfbf4e45d6cd7b4b4cacb1c58bf
Parents: 973abd0
Author: Guangya Liu <gy...@apache.org>
Authored: Thu Feb 9 08:28:43 2017 +0800
Committer: Guangya Liu <gy...@gmail.com>
Committed: Thu Feb 9 08:28:43 2017 +0800
----------------------------------------------------------------------
include/mesos/scheduler/scheduler.proto | 16 ++++++++++++++++
include/mesos/v1/scheduler/scheduler.proto | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/74867535/include/mesos/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/scheduler/scheduler.proto b/include/mesos/scheduler/scheduler.proto
index 5f4635d..da2c67a 100644
--- a/include/mesos/scheduler/scheduler.proto
+++ b/include/mesos/scheduler/scheduler.proto
@@ -283,6 +283,13 @@ message Call {
optional Filters filters = 2;
}
+ // Revive offers for a specified role. If role is unset, the
+ // `REVIVE` call will revive offers for all of the roles the
+ // framework is subscribed to.
+ message Revive {
+ optional string role = 1;
+ }
+
// Kills a specific task. If the scheduler has a custom executor,
// the kill is forwarded to the executor and it is up to the
// executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
@@ -365,6 +372,13 @@ message Call {
repeated mesos.Request requests = 1;
}
+ // Suppress offers for a specified role. If role is unset, the
+ // `SUPPRESS` call will suppress offers for all of the roles the
+ // framework is subscribed to.
+ message Suppress {
+ optional string role = 1;
+ }
+
// Identifies who generated this call. Master assigns a framework id
// when a new scheduler subscribes for the first time. Once assigned,
// the scheduler must set the 'framework_id' here and within its
@@ -383,10 +397,12 @@ message Call {
optional Decline decline = 5;
optional AcceptInverseOffers accept_inverse_offers = 13;
optional DeclineInverseOffers decline_inverse_offers = 14;
+ optional Revive revive = 15;
optional Kill kill = 6;
optional Shutdown shutdown = 7;
optional Acknowledge acknowledge = 8;
optional Reconcile reconcile = 9;
optional Message message = 10;
optional Request request = 11;
+ optional Suppress suppress = 16;
}
http://git-wip-us.apache.org/repos/asf/mesos/blob/74867535/include/mesos/v1/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/scheduler/scheduler.proto b/include/mesos/v1/scheduler/scheduler.proto
index 096c76d..65ccfa7 100644
--- a/include/mesos/v1/scheduler/scheduler.proto
+++ b/include/mesos/v1/scheduler/scheduler.proto
@@ -273,6 +273,13 @@ message Call {
optional Filters filters = 2;
}
+ // Revive offers for a specified role. If role is unset, the
+ // `REVIVE` call will revive offers for all of the roles the
+ // framework is subscribed to.
+ message Revive {
+ optional string role = 1;
+ }
+
// Kills a specific task. If the scheduler has a custom executor,
// the kill is forwarded to the executor and it is up to the
// executor to kill the task and send a TASK_KILLED (or TASK_FAILED)
@@ -355,6 +362,13 @@ message Call {
repeated mesos.v1.Request requests = 1;
}
+ // Suppress offers for a specified role. If role is unset, the
+ // `SUPPRESS` call will suppress offers for all of the roles the
+ // framework is subscribed to.
+ message Suppress {
+ optional string role = 1;
+ }
+
// Identifies who generated this call. Master assigns a framework id
// when a new scheduler subscribes for the first time. Once assigned,
// the scheduler must set the 'framework_id' here and within its
@@ -373,10 +387,12 @@ message Call {
optional Decline decline = 5;
optional AcceptInverseOffers accept_inverse_offers = 13;
optional DeclineInverseOffers decline_inverse_offers = 14;
+ optional Revive revive = 15;
optional Kill kill = 6;
optional Shutdown shutdown = 7;
optional Acknowledge acknowledge = 8;
optional Reconcile reconcile = 9;
optional Message message = 10;
optional Request request = 11;
+ optional Suppress suppress = 16;
}