Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-3639

Allow configuration of "port" instead of "portIndex" for HTTP/TCP health checks

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
    • Build artifact:
      0.15.0

      Description

      In MGI-2731 we introduce the option to specify the absolute port number for the health check instead of the portIndex. This is especially useful in the IP-per-container case.

      Example, instead of:

       javascript
      {
          "id": "...",
           // ...
           "healthChecks": [
              {
                "gracePeriodSeconds": 30,
                "ignoreHttp1xx": false,
                "intervalSeconds": 6,
                "maxConsecutiveFailures": 3,
                "portIndex": 0,
                "protocol": "TCP",
                "timeoutSeconds": 2
              }
            ]
      }
      

      You could write:

       javascript
      {
          "id": "...",
           // ...
           "healthChecks": [
              {
                "gracePeriodSeconds": 30,
                "ignoreHttp1xx": false,
                "intervalSeconds": 6,
                "maxConsecutiveFailures": 3,
                "port": 9000,
                "protocol": "TCP",
                "timeoutSeconds": 2
              }
            ]
      }
      

      In the IP-per-container case, Marathon will (when implemented) automatically choose the IP address of the container and the specified port for the health check.

        Attachments

          Activity

            People

            • Assignee:
              philipph Philipp Hinrichsen
              Reporter:
              GitHub_kolloch Peter Kolloch (Inactive)
              Team:
              Frontend Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: