mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Rukletsov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MESOS-8942) Master streaming API does not send (health) check updates for tasks.
Date Mon, 04 Jun 2018 14:41:00 GMT

    [ 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:40 PM:
--------------------------------------------------------------------

{noformat:title=master}
commit 4e6d8047fd127745ef10463818dadc2399732961
Author:     Alexander Rukletsov <rukletsov@gmail.com>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit:     Alexander Rukletsov <alexr@apache.org>
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 <rukletsov@gmail.com>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit:     Alexander Rukletsov <alexr@apache.org>
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}


was (Author: alexr):
{noformat}
commit 4e6d8047fd127745ef10463818dadc2399732961
Author:     Alexander Rukletsov <rukletsov@gmail.com>
AuthorDate: Mon Jun 4 16:31:38 2018 +0200
Commit:     Alexander Rukletsov <alexr@apache.org>
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}

> 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)

Mime
View raw message