[
https://issues.apache.org/jira/browse/MESOS-8942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16500297#comment-16500297
]
Alexander Rukletsov edited comment on MESOS-8942 at 6/4/18 2:48 PM:
--------------------------------------------------------------------
{noformat:title=master}
commit 4e6d8047fd127745ef10463818dadc2399732961
Author: Alexander Rukletsov <[email protected]>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit: Alexander Rukletsov <[email protected]>
CommitDate: Mon Jun 4 16:31:38 2018 +0200
Sent task (health) check updates over the operator streaming API.
With this patch subscribers to the master operator streaming API
start receiving task health (check) updates. This allows subscribers
to maintain more accurate view of the cluster's state, closer to
what the traditional `state.json` endpoint offers.
Review: https://reviews.apache.org/r/67320/
{noformat}
{noformat:title=1.6.x}
commit 047ae01ae8533025cd8415a6efa420951ff98659
Author: Alexander Rukletsov <[email protected]>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit: Alexander Rukletsov <[email protected]>
CommitDate: Mon Jun 4 16:36:56 2018 +0200
Sent task (health) check updates over the operator streaming API.
With this patch subscribers to the master operator streaming API
start receiving task health (check) updates. This allows subscribers
to maintain more accurate view of the cluster's state, closer to
what the traditional `state.json` endpoint offers.
Review: https://reviews.apache.org/r/67320/
(cherry picked from commit 4e6d8047fd127745ef10463818dadc2399732961)
{noformat}
{noformat:title=1.5.x}
commit ce8af74bfcfdc516f2d4ed592184adfc6f2f96f8
Author: Alexander Rukletsov <[email protected]>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit: Alexander Rukletsov <[email protected]>
CommitDate: Mon Jun 4 16:47:13 2018 +0200
Sent task (health) check updates over the operator streaming API.
With this patch subscribers to the master operator streaming API
start receiving task health (check) updates. This allows subscribers
to maintain more accurate view of the cluster's state, closer to
what the traditional `state.json` endpoint offers.
Review: https://reviews.apache.org/r/67320/
(cherry picked from commit 4e6d8047fd127745ef10463818dadc2399732961)
{noformat}
was (Author: alexr):
{noformat:title=master}
commit 4e6d8047fd127745ef10463818dadc2399732961
Author: Alexander Rukletsov <[email protected]>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit: Alexander Rukletsov <[email protected]>
CommitDate: Mon Jun 4 16:31:38 2018 +0200
Sent task (health) check updates over the operator streaming API.
With this patch subscribers to the master operator streaming API
start receiving task health (check) updates. This allows subscribers
to maintain more accurate view of the cluster's state, closer to
what the traditional `state.json` endpoint offers.
Review: https://reviews.apache.org/r/67320/
{noformat}
{noformat:title=1.6.x}
commit 047ae01ae8533025cd8415a6efa420951ff98659
Author: Alexander Rukletsov <[email protected]>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit: Alexander Rukletsov <[email protected]>
CommitDate: Mon Jun 4 16:36:56 2018 +0200
Sent task (health) check updates over the operator streaming API.
With this patch subscribers to the master operator streaming API
start receiving task health (check) updates. This allows subscribers
to maintain more accurate view of the cluster's state, closer to
what the traditional `state.json` endpoint offers.
Review: https://reviews.apache.org/r/67320/
(cherry picked from commit 4e6d8047fd127745ef10463818dadc2399732961)
{noformat}
> Master streaming API does not send (health) check updates for tasks.
> --------------------------------------------------------------------
>
> Key: MESOS-8942
> URL: https://issues.apache.org/jira/browse/MESOS-8942
> Project: Mesos
> Issue Type: Task
> Components: HTTP API
> Affects Versions: 1.4.1, 1.5.0, 1.6.0
> Reporter: Alexander Rukletsov
> Assignee: Alexander Rukletsov
> Priority: Major
> Labels: api, mesosphere, streaming-api
>
> Currently, Master API subscribers get task status updates when task state
> changes (the actual logic is [slightly more
> complex|https://github.com/apache/mesos/blob/d7d7cfbc3e5609fc9a4e8de8203a6ecb11afeac7/src/master/master.cpp#L10794-L10841]).
> We use task status updates to deliver health and check information to
> schedulers, in which case task state does not change. Hence these updates are
> filtered out and the subscribers do not get any task health updates.
> Here is a test that confirms the described behaviour:
> https://gist.github.com/rukletsov/c079d95479fb134d137ea3ae8b7ae874
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)