You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by an...@apache.org on 2016/10/28 14:14:08 UTC

[3/3] mesos git commit: Added `MasterInfo` to the subscribed event.

Added `MasterInfo` to the subscribed event.

This would be useful for schedulers that want more information
about the master if they are using an alternate detector
implementation that does not query Master ZK entry. Also,
this is needed presently by the V0 -> V1 HTTP adapter. The
old driver based schedulers used to get this information via
the `Framework(Re-)registered` event.

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


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

Branch: refs/heads/master
Commit: 74764092ab603ba970d90cf7e858cdb575748c17
Parents: 189ac94
Author: Anand Mazumdar <an...@apache.org>
Authored: Thu Oct 27 15:42:45 2016 -0700
Committer: Anand Mazumdar <an...@apache.org>
Committed: Fri Oct 28 07:12:47 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/74764092/include/mesos/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/scheduler/scheduler.proto b/include/mesos/scheduler/scheduler.proto
index 0576d90..d8589cc 100644
--- a/include/mesos/scheduler/scheduler.proto
+++ b/include/mesos/scheduler/scheduler.proto
@@ -66,6 +66,9 @@ message Event {
     // This value will be set if the master is sending heartbeats. See
     // the comment above on 'HEARTBEAT' for more details.
     optional double heartbeat_interval_seconds = 2;
+
+    // Since Mesos 1.1.
+    optional MasterInfo master_info = 3;
   }
 
   // Received whenever there are new resources that are offered to the

http://git-wip-us.apache.org/repos/asf/mesos/blob/74764092/include/mesos/v1/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/v1/scheduler/scheduler.proto b/include/mesos/v1/scheduler/scheduler.proto
index a922a7f..a329acd 100644
--- a/include/mesos/v1/scheduler/scheduler.proto
+++ b/include/mesos/v1/scheduler/scheduler.proto
@@ -66,6 +66,9 @@ message Event {
     // This value will be set if the master is sending heartbeats. See
     // the comment above on 'HEARTBEAT' for more details.
     optional double heartbeat_interval_seconds = 2;
+
+    // Since Mesos 1.1.
+    optional MasterInfo master_info = 3;
   }
 
   // Received whenever there are new resources that are offered to the