node-marathon
Version:
Marathon v2 API client for Node.js
136 lines • 3.8 kB
JSON
{
"app": {
"args": null,
"backoffFactor": 1.15,
"backoffSeconds": 1,
"maxLaunchDelaySeconds": 3600,
"cmd": "python toggle.py $PORT0",
"constraints": [],
"container": null,
"cpus": 0.2,
"dependencies": [],
"deployments": [
{
"id": "44c4ed48-ee53-4e0f-82dc-4df8b2a69057"
}
],
"disk": 0.0,
"env": {},
"executor": "",
"healthChecks": [
{
"command": null,
"gracePeriodSeconds": 5,
"intervalSeconds": 10,
"maxConsecutiveFailures": 3,
"path": "/health",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 10
},
{
"command": null,
"gracePeriodSeconds": 5,
"intervalSeconds": 10,
"maxConsecutiveFailures": 6,
"path": "/machinehealth",
"overridePort": 3333,
"protocol": "HTTP",
"timeoutSeconds": 10
}
],
"id": "/toggle",
"instances": 2,
"lastTaskFailure": {
"appId": "/toggle",
"host": "10.141.141.10",
"message": "Abnormal executor termination",
"state": "TASK_FAILED",
"taskId": "toggle.cc427e60-5046-11e4-9e34-56847afe9799",
"timestamp": "2014-09-12T23:23:41.711Z",
"version": "2014-09-12T23:28:21.737Z"
},
"mem": 32.0,
"ports": [
10000
],
"requirePorts": false,
"storeUrls": [],
"tasks": [
{
"appId": "/toggle",
"healthCheckResults": [
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-09-13T00:20:28.101Z",
"lastFailure": null,
"lastSuccess": "2014-09-13T00:25:07.506Z",
"taskId": "toggle.802df2ae-3ad4-11e4-a400-56847afe9799"
},
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-09-13T00:20:28.101Z",
"lastFailure": null,
"lastSuccess": "2014-09-13T00:25:07.506Z",
"taskId": "toggle.802df2ae-3ad4-11e4-a400-56847afe9799"
}
],
"host": "10.141.141.10",
"id": "toggle.802df2ae-3ad4-11e4-a400-56847afe9799",
"ports": [
31045
],
"stagedAt": "2014-09-12T23:28:28.594Z",
"startedAt": "2014-09-13T00:24:46.959Z",
"version": "2014-09-12T23:28:21.737Z"
},
{
"appId": "/toggle",
"healthCheckResults": [
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-09-13T00:20:28.101Z",
"lastFailure": null,
"lastSuccess": "2014-09-13T00:25:07.508Z",
"taskId": "toggle.7c99814d-3ad4-11e4-a400-56847afe9799"
},
{
"alive": true,
"consecutiveFailures": 0,
"firstSuccess": "2014-09-13T00:20:28.101Z",
"lastFailure": null,
"lastSuccess": "2014-09-13T00:25:07.506Z",
"taskId": "toggle.802df2ae-3ad4-11e4-a400-56847afe9799"
}
],
"host": "10.141.141.10",
"id": "toggle.7c99814d-3ad4-11e4-a400-56847afe9799",
"ports": [
31234
],
"stagedAt": "2014-09-12T23:28:22.587Z",
"startedAt": "2014-09-13T00:24:46.965Z",
"version": "2014-09-12T23:28:21.737Z"
}
],
"tasksRunning": 2,
"tasksHealthy": 2,
"tasksUnhealthy": 0,
"tasksStaged": 0,
"upgradeStrategy": {
"minimumHealthCapacity": 1.0
},
"uris": [
"http://downloads.mesosphere.com/misc/toggle.tgz"
],
"user": null,
"version": "2014-09-12T23:28:21.737Z",
"versionInfo": {
"lastConfigChangeAt": "2014-09-11T02:26:01.135Z",
"lastScalingAt": "2014-09-12T23:28:21.737Z"
}
}
}