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

Correct the host port when using http health checks

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Won't Do
    • Affects Version/s: None
    • Fix Version/s: Marathon 1.4.0
    • Component/s: None
    • Labels:

      Description

      Summary:

      • Now that everything is validated, we should be able to reliably
        fill in the host port correctly - DCOS-10021

      Test Plan:
      Used the following json and checked the status after

      {
        "id": "/podz/pod",
        "labels": {
          "values": {}
        },
        "version": "2016-09-27T21:29:28.397Z",
        "user": null,
        "environment": null,
        "containers": [
          {
            "name": "container1",
            "exec": {
              "command": {
                "shell": "sleep 100"
              },
              "overrideEntrypoint": false
            },
            "resources": {
              "cpus": 1,
              "mem": 128,
              "disk": 0,
              "gpus": 0
            },
            "endpoints": [
              {
                "name": "http",
                "containerPort": 1,
                "hostPort": 0,
                "protocol": ["tcp"],
                "labels": {
                  "values": {}
                }
              }
            ],
            "image": {
              "kind": "docker",
              "id": "mesosphere/mesos-slave:latest",
              "forcePull": false
            },
            "environment": null,
            "user": "root",
            "healthCheck": {
              "http": {
                "endpoint": "http",
                "path": "/health",
                "scheme": "http"
              },
              "gracePeriodSeconds": 30,
              "intervalSeconds": 2,
              "maxConsecutiveFailures": 3,
              "timeoutSeconds": 20,
              "delaySeconds": 2
            },
            "volumeMounts": [],
            "artifacts": [],
            "labels": null,
            "lifecycle": {
              "killGracePeriodSeconds": 60
            }
          }
        ],
        "secrets": null,
        "volumes": [],
        "networks": [
          {
            "mode": "host"
          }
        ],
        "scaling": {
          "kind": "fixed",
          "instances": 1,
          "maxInstances": null
        },
        "scheduling": {
          "backoff": {
            "backoff": 1,
            "backoffFactor": 1.15,
            "maxLaunchDelay": 3600
          },
          "upgrade": {
            "minimumHealthCapacity": 1,
            "maximumOverCapacity": 1
          },
          "placement": {
            "constraints": [],
            "acceptedResourceRoles": []
          }
        }
      }
      

      Reviewers: jdef, aquamatthias, unterstein

      Subscribers: marathon-team

      Differential Revision: https://phabricator.mesosphere.com/D30

        Attachments

          Activity

            People

            • Assignee:
              matthias Matthias Veit (Inactive)
              Reporter:
              jgilanfarr Jason Gilanfarr (Inactive)
              Team:
              Orchestration Team
              Watchers:
              Marco Monaco
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: