Maintenance Primitives: Added InverseOffers to Scheduler Event Offers.

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


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

Branch: refs/heads/master
Commit: c702a2c55e3e6d893b959e22f29bb18cb34ffdbb
Parents: a1de99f
Author: Joris Van Remoortere <[email protected]>
Authored: Sun Aug 30 14:22:03 2015 -0400
Committer: Joris Van Remoortere <[email protected]>
Committed: Mon Sep 14 13:58:37 2015 -0400

----------------------------------------------------------------------
 include/mesos/scheduler/scheduler.proto    | 10 +++++++---
 include/mesos/v1/scheduler/scheduler.proto | 10 +++++++---
 2 files changed, 14 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c702a2c5/include/mesos/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/scheduler/scheduler.proto 
b/include/mesos/scheduler/scheduler.proto
index 89daf8a..19f548d 100644
--- a/include/mesos/scheduler/scheduler.proto
+++ b/include/mesos/scheduler/scheduler.proto
@@ -65,11 +65,15 @@ message Event {
   }
 
   // Received whenever there are new resources that are offered to the
-  // scheduler. Each offer corresponds to a set of resources on a
-  // slave. Until the scheduler accepts or declines an offer the
-  // resources are considered allocated to the scheduler.
+  // scheduler or resources requested back from the scheduler. Each
+  // offer corresponds to a set of resources on a slave. Until the
+  // scheduler accepts or declines an offer the resources are
+  // considered allocated to the scheduler. Accepting or Declining an
+  // inverse offer informs the allocator of the scheduler's ability to
+  // release the resources without violating an SLA.
   message Offers {
     repeated Offer offers = 1;
+    repeated InverseOffer inverse_offers = 2;
   }
 
   // Received when a particular offer is no longer valid (e.g., the

http://git-wip-us.apache.org/repos/asf/mesos/blob/c702a2c5/include/mesos/v1/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/scheduler/scheduler.proto 
b/include/mesos/v1/scheduler/scheduler.proto
index bd5e82a..0118b46 100644
--- a/include/mesos/v1/scheduler/scheduler.proto
+++ b/include/mesos/v1/scheduler/scheduler.proto
@@ -65,11 +65,15 @@ message Event {
   }
 
   // Received whenever there are new resources that are offered to the
-  // scheduler. Each offer corresponds to a set of resources on a
-  // agent. Until the scheduler accepts or declines an offer the
-  // resources are considered allocated to the scheduler.
+  // scheduler or resources requested back from the scheduler. Each
+  // offer corresponds to a set of resources on a slave. Until the
+  // scheduler accepts or declines an offer the resources are
+  // considered allocated to the scheduler. Accepting or Declining an
+  // inverse offer informs the allocator of the scheduler's ability to
+  // release the resources without violating an SLA.
   message Offers {
     repeated Offer offers = 1;
+    repeated InverseOffer inverse_offers = 2;
   }
 
   // Received when a particular offer is no longer valid (e.g., the

Reply via email to