Details

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

      Description

      Using 0.7.0 RC1 on Ubuntu 14.04, against Mesos 0.20.0:

      The following task definition:

       json
      {
          "app": {
              "args": null,
              "backoffFactor": 1.15,
              "backoffSeconds": 1,
              "cmd": "java -jar clojure-thing-standalone.jar $PORT",
              "constraints": [],
              "container": null,
              "cpus": 0.25,
              "dependencies": [],
              "deployments": [],
              "disk": 0.0,
              "env": {},
              "executor": "",
              "healthChecks": [
                  {
                      "command": null,
                      "gracePeriodSeconds": 30,
                      "intervalSeconds": 30,
                      "maxConsecutiveFailures": 0,
                      "path": "/health",
                      "portIndex": 0,
                      "protocol": "HTTP",
                      "timeoutSeconds": 30
                  }
              ],
              "id": "/mygroup/myapp",
              "instances": 2,
              "mem": 128.0,
              "ports": [
                  6510
              ],
              "requirePorts": false,
              "storeUrls": [],
              "tasks": [
                  {
                      "host": "x.x.x.x",
                      "id": "mygroup_myapp.b5634baf-3939-11e4-bc9d-56847afe9799",
                      "ports": [
                          31030
                      ],
                      "stagedAt": "2014-09-10T22:27:54.707Z",
                      "startedAt": "2014-09-11T13:12:07.013Z",
                      "version": "2014-09-10T22:27:53.683Z"
                  },
                  {
                      "host": "x.x.x.x",
                      "id": "mygroup_myapp.b5fc0940-3939-11e4-bc9d-56847afe9799",
                      "ports": [
                          31635
                      ],
                      "stagedAt": "2014-09-10T22:27:55.708Z",
                      "startedAt": "2014-09-11T13:12:07.003Z",
                      "version": "2014-09-10T22:27:53.683Z"
                  }
              ],
              "tasksRunning": 2,
              "tasksStaged": 0,
              "upgradeStrategy": {
                  "minimumHealthCapacity": 1.0
              },
              "uris": ["hdfs:///the/path/to/our/clojure-thing-standalone.jar"],
              "user": null,
              "version": "2014-09-10T22:27:53.683Z"
          }
      }
      

      works. Hooray! Further, it gives the following health check result (from /v2/apps/mygroup/myapp/tasks):

       json
      ...
          "healthCheckResults": [
              {
                  "alive": true,
                  "consecutiveFailures": 0,
                  "firstSuccess": "2014-09-11T13:04:35.998Z",
                  "lastFailure": null,
                  "lastSuccess": "2014-09-11T13:15:05.097Z",
                  "taskId": "mygroup_myapp.b5fc0940-3939-11e4-bc9d-56847afe9799"
              }
          ],
      ...
      

      However, the "health" circle in the UI is grey and it's alt-text is "Unknown". Do I need to do something different to get the health status in the UI?

      (and as a secondary question: those tasks were both started on September 10, but firstSuccess is on September 11. They haven't been failing (haproxy says so), so is that part of the problem?)

        Attachments

          Activity

            People

            • Assignee:
              GitHub_ConnorDoyle Connor Doyle (Inactive)
              Reporter:
              GitHub_BrianHicks Brian Hicks (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: