Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5936

Operator SUBSCRIBE api should provdide more task metadata than just state changes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • HTTP API, json api

    Description

      I am starting to use the new Operator event subscription API to get notified of task changes. The initial TASK_STAGING event has a good amount of information, but unfortunately future events like TASK_RUNNING include almost no metadata. This means that any task information that cannot be determined until the task launches (in my particular case, the IP address assigned by the Docker containerizer) is not available through the event stream.

      Here is a gist of a single task that was launched, comparing the information in 'state.json' vs the subscribed events:

      https://gist.github.com/stevenschlansker/c1d32aa9ce37a73f9c4d64347397d3b8

      Note particularly how the IP address never shows in the event stream.

      Task updates should expose the task information that changed. If this is too onerous, maybe the subscription call can take optional sets of data to include, with the first one being additional task metadata.

      A possible workaround is to use the task events to fetch 'state.json' separately, but this is inherently racy and totally undermines the utility of the event stream api.

      Attachments

        Issue Links

          Activity

            People

              zhitao Zhitao Li
              stevenschlansker Steven Schlansker
              Anand Mazumdar Anand Mazumdar
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: