Details

    • Type: Task
    • Status: Resolved
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The Mesos protobufs have been extended with basic service discovery info for tasks (see https://reviews.apache.org/r/29473/ for details). This information can be used by systems Mesos-DNS to generate DNS records for service discovery.

      To facilitate apps that use multiple ports, it would be great if Marathon allowed the user to specify a name and a protocol when requesting ports. For example, when specifying task X, instead of typing:
      "ports": [
      80,
      443]
      we could have:
      "ports": [
      80:http:tcp,
      443:admin:*]
      with the two fields after the port number being optional. This information will be translated by Marathon the ports task info in https://reviews.apache.org/r/29473/ and will lead to the generation of SRV records for names like:
      _http.tcp.x.domain
      _admin.tcp.x.domain
      _admin.udp.x.domain

      There will also be cases where the users does not care about the specific ports but will want to name the ports assigned by Marathon. For instance, if the task is launched as "/usr/local/bin/X -p1 $PORT1 -p2 $PORT2", we can allow a syntax like:
      "ports": [
      port1:http:tcp,
      port2:admin:*]

      Sub-Tasks

      • MGI-670 - Rethink ports API
      • MGI-1866 - Set DiscoveryInfo for created TaskInfo messages

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                GitHub_kozyraki Christos Kozyrakis (Inactive)
                Team:
                Orchestration Team
                Watchers:
                Chmielewski
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: