You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2014/06/10 23:22:45 UTC

git commit: Added healthy field to TaskUpdate.

Repository: mesos
Updated Branches:
  refs/heads/master 7013f47c3 -> 23a25e7e2


Added healthy field to TaskUpdate.

As a part of the health check story, this patch adds an optional
healthy field to the task update proto.  The semanticist should be
understood as, if the field is absent - no health check has (yet) been
carried out.  If present, it will either encode unhealthy
(healthy=false) or healthy determined by the HealthCheck protobuf in
the command info proto.  This means that multiple TASK_RUNNING updates
can be sent for a task, updating the state of the last health check.

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


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

Branch: refs/heads/master
Commit: 23a25e7e231d58b4433e34483296b556a3a441a0
Parents: 7013f47
Author: Niklas Nielsen <ni...@qni.dk>
Authored: Tue Jun 10 13:53:16 2014 -0700
Committer: Niklas Q. Nielsen <ni...@mesosphere.io>
Committed: Tue Jun 10 13:53:16 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/mesos/blob/23a25e7e/include/mesos/mesos.proto
----------------------------------------------------------------------
diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 62f69d2..102289b 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -510,6 +510,11 @@ message TaskStatus {
   optional SlaveID slave_id = 5;
   optional ExecutorID executor_id = 7; // TODO(benh): Use in master/slave.
   optional double timestamp = 6;
+
+  // Describes whether the task has been determined to be healthy
+  // (true) or unhealthy (false) according to the HealthCheck field in
+  // the command info.
+  optional bool healthy = 8;
 }