Repository: mesos
Updated Branches:
  refs/heads/master f0ee4aa3d -> dfd55d2a1


Added HEARTBEAT event to the scheduler API.

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


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

Branch: refs/heads/master
Commit: dfd55d2a14f75f4e4581b9d3b75d0c7a9c546e69
Parents: 9225013
Author: Vinod Kone <[email protected]>
Authored: Wed Jul 22 15:05:37 2015 -0700
Committer: Vinod Kone <[email protected]>
Committed: Thu Jul 23 12:32:56 2015 -0700

----------------------------------------------------------------------
 include/mesos/scheduler/scheduler.proto | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/dfd55d2a/include/mesos/scheduler/scheduler.proto
----------------------------------------------------------------------
diff --git a/include/mesos/scheduler/scheduler.proto 
b/include/mesos/scheduler/scheduler.proto
index 5219b76..89daf8a 100644
--- a/include/mesos/scheduler/scheduler.proto
+++ b/include/mesos/scheduler/scheduler.proto
@@ -42,11 +42,26 @@ message Event {
     MESSAGE = 5;    // See 'Message' below.
     FAILURE = 6;    // See 'Failure' below.
     ERROR = 7;      // See 'Error' below.
+
+    // Periodic message sent by the Mesos master according to
+    // 'Subscribed.heartbeat_interval_seconds'. If the scheduler does
+    // not receive any events (including heartbeats) for an extended
+    // period of time (e.g., 5 x heartbeat_interval_seconds), there is
+    // likely a network partition. In such a case the scheduler should
+    // close the existing subscription connection and resubscribe
+    // using a backoff strategy.
+    HEARTBEAT = 8;
   }
 
   // First event received when the scheduler subscribes.
   message Subscribed {
     required FrameworkID framework_id = 1;
+
+    // This value will be set if the master is sending heartbeats. See
+    // the comment above on 'HEARTBEAT' for more details.
+    // TODO(vinod): Implement heartbeats in the master once the master
+    // can send HTTP events.
+    optional double heartbeat_interval_seconds = 2;
   }
 
   // Received whenever there are new resources that are offered to the

Reply via email to