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

Add support for task labels / parameters

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Mesosphere Q4 Sprint 3 - 12/7

    Description

      Add support to hang key value pairs off tasks which follows them through the task life-cycle. This can be made available through the existing HTTP end-points (state, tasks and so on) which the data field cannot do, as we cannot make any assumptions in how to interpret the user data.
      A capability like this is a relative small change compared to the leverage it gives with regards to external tooling.

      We should consider the implications of the new field just like the data field with respect to avoid requiring excess memory to store the task info's.

      We already have a proto message for key value pairs called Parameter: https://github.com/apache/mesos/blob/master/include/mesos/mesos.proto#L712

      So the suggested change is:

      message TaskInfo {
        required string name = 1;
        required TaskID task_id = 2;
        required SlaveID slave_id = 3;
        repeated Resource resources = 4;
        optional ExecutorInfo executor = 5;
        optional CommandInfo command = 7;
        // Task provided with a container will launch the container as part
        // of this task paired with the task's CommandInfo.
        optional ContainerInfo container = 9;
        optional bytes data = 6;
        // A health check for the task (currently in *alpha* and initial
        // support will only be for TaskInfo's that have a CommandInfo).
        optional HealthCheck health_check = 8;
      
        optional Parameters parameters = 9;
      }
      

      Alongside the necessary changes to expose the value in master and slave endpoints.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nnielsen Niklas Quarfot Nielsen
            nnielsen Niklas Quarfot Nielsen
            Timothy Chen Timothy Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprint:
                Mesosphere Q4 Sprint 3 - 12/7 ended 15/Jan/15
                View on Board

                Slack

                  Issue deployment