Marathon apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erick@mesos01-mr-seoul-ap-northeast-2a:~$ curl localhost:8080/v2/apps/sami/qamr2/apps/caduceus-qamr21 | python -m json.tool | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 4400 0 4400 0 0 183k 0 --:--:-- --:--:-- --:--:-- 186k | |
{ | |
"app": { | |
"args": [ | |
"play", | |
"/opt/sami/caduceus/bin/caduceus" | |
], | |
"backoffFactor": 5, | |
"backoffSeconds": 1, | |
"cmd": null, | |
"constraints": [ | |
[ | |
"type", | |
"LIKE", | |
"app-mr" | |
] | |
], | |
"container": { | |
"docker": { | |
"forcePullImage": false, | |
"image": "registry-preprod.samihub.org/caduceus:3fdfcc46e108a5b2d0781074a4db2ac47c336307", | |
"network": "BRIDGE", | |
"parameters": [ | |
{ | |
"key": "label", | |
"value": "app=caduceus-qamr2" | |
} | |
], | |
"portMappings": [ | |
{ | |
"containerPort": 6761, | |
"hostPort": 0, | |
"labels": {}, | |
"protocol": "tcp", | |
"servicePort": 6762 | |
}, | |
{ | |
"containerPort": 16341, | |
"hostPort": 0, | |
"labels": {}, | |
"protocol": "tcp", | |
"servicePort": 10012 | |
} | |
], | |
"privileged": false | |
}, | |
"type": "DOCKER", | |
"volumes": [ | |
{ | |
"containerPath": "/var/log/caduceus", | |
"hostPath": "/var/log/caduceus", | |
"mode": "RW" | |
}, | |
{ | |
"containerPath": "/opt/sami/config/logger.xml", | |
"hostPath": "/opt/sami/config/logger.xml", | |
"mode": "RW" | |
} | |
] | |
}, | |
"cpus": 0.2, | |
"dependencies": [], | |
"deployments": [], | |
"disk": 0, | |
"env": { | |
"INSTANCE_PARAMS": "-Dhttp.port=6761 -Dsami.deploy.product=caduceus -Dsami.deploy.env=qamr2 -DSAMI_ZOOKEEPER_CONNECT=10.150.100.120:2181 -Dlogger.file=/opt/sami/config/logger.xml", | |
"JAVA_OPTS": "-Xms1024M -Xmx1024M -Xss2M -Xmn256M -XX:MaxMetaspaceSize=256M -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -server -Djava.awt.headless=true -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+HeapDumpOnOutOfMemoryError -javaagent:/jmx_prometheus_javaagent-0.7-SNAPSHOT.jar=16341:/jmx_prometheus.yml", | |
"LOGSTASH_CONTEXT": "caduceus_qamr2", | |
"SAMI_DEPLOY_ENV": "qamr2", | |
"SAMI_HOST_PREFIX": "false", | |
"SAMI_LOG_DIR": "/var/log/caduceus", | |
"SERVICE_16341_NAME": "caduceus-qamr2-jmx-exporter", | |
"SERVICE_6761_CHECK_HTTP": "/healthcheck", | |
"SERVICE_6761_CHECK_INTERVAL": "10s", | |
"SERVICE_6761_CHECK_TIMEOUT": "2s", | |
"SERVICE_6761_NAME": "caduceus-qamr2", | |
"SERVICE_REGION": "ap-northeast-2-seoul", | |
"TZ": "America/Los_Angeles" | |
}, | |
"executor": "", | |
"fetch": [ | |
{ | |
"cache": false, | |
"executable": false, | |
"extract": false, | |
"uri": "file:///root/.dockercfg" | |
} | |
], | |
"gpus": 0, | |
"healthChecks": [ | |
{ | |
"gracePeriodSeconds": 30, | |
"ignoreHttp1xx": false, | |
"intervalSeconds": 10, | |
"maxConsecutiveFailures": 3, | |
"path": "/healthcheck", | |
"portIndex": 0, | |
"protocol": "HTTP", | |
"timeoutSeconds": 10 | |
} | |
], | |
"id": "/sami/qamr2/apps/caduceus-qamr21", | |
"instances": 1, | |
"ipAddress": null, | |
"killSelection": "YOUNGEST_FIRST", | |
"labels": { | |
"6761": "tag", | |
"HAPROXY_0_GROUP": "internal", | |
"HAPROXY_0_MODE": "http", | |
"consul": "caduceus-6761-qamr2", | |
"internal": "tag", | |
"qamr2": "tag", | |
"traefik.backend": "-caduceus-qamr2", | |
"traefik.enable": "true", | |
"traefik.frontend.rule": "PathPrefixStrip:/caduceus-qamr2", | |
"traefik.portIndex": "0" | |
}, | |
"lastTaskFailure": { | |
"appId": "/sami/qamr2/apps/caduceus-qamr21", | |
"host": "apptf01-mr-seoul-ap-northeast-2a.ec2.ssic.internal", | |
"message": "Slave apptf01-mr-seoul-ap-northeast-2a.ec2.ssic.internal removed: a new agent registered at the same address", | |
"slaveId": "eabd94b3-f161-4bb8-893f-6e63be0b6cd4-S2", | |
"state": "TASK_LOST", | |
"taskId": "sami_qamr2_apps_caduceus-qamr21.9193f90c-1e45-11e7-83b6-5a0af1661daa", | |
"timestamp": "2017-04-10T23:39:05.303Z", | |
"version": "2017-04-10T21:39:38.329Z" | |
}, | |
"maxLaunchDelaySeconds": 3600, | |
"mem": 1600, | |
"portDefinitions": [ | |
{ | |
"labels": {}, | |
"port": 6762, | |
"protocol": "tcp" | |
}, | |
{ | |
"labels": {}, | |
"port": 10012, | |
"protocol": "tcp" | |
} | |
], | |
"ports": [ | |
6762, | |
10012 | |
], | |
"readinessChecks": [], | |
"requirePorts": false, | |
"residency": null, | |
"secrets": {}, | |
"storeUrls": [], | |
"taskKillGracePeriodSeconds": 60, | |
"tasks": [ | |
{ | |
"appId": "/sami/qamr2/apps/caduceus-qamr21", | |
"healthCheckResults": [ | |
{ | |
"alive": true, | |
"consecutiveFailures": 0, | |
"firstSuccess": "2017-04-13T00:28:13.196Z", | |
"instanceId": "sami_qamr2_apps_caduceus-qamr21.marathon-908f4871-1e47-11e7-83b6-5a0af1661daa", | |
"lastFailure": null, | |
"lastFailureCause": null, | |
"lastSuccess": "2017-04-13T00:42:54.460Z" | |
} | |
], | |
"host": "apptf03-mr-seoul-ap-northeast-2a.ec2.ssic.internal", | |
"id": "sami_qamr2_apps_caduceus-qamr21.908f4871-1e47-11e7-83b6-5a0af1661daa", | |
"ipAddresses": [ | |
{ | |
"ipAddress": "172.17.0.4", | |
"protocol": "IPv4" | |
} | |
], | |
"ports": [ | |
31450, | |
31451 | |
], | |
"slaveId": "a47fe4a3-da43-445f-9295-ba0c195fd0a7-S5", | |
"stagedAt": "2017-04-10T23:43:57.491Z", | |
"startedAt": "2017-04-10T23:43:58.381Z", | |
"state": "TASK_RUNNING", | |
"version": "2017-04-10T23:43:55.404Z" | |
} | |
], | |
"tasksHealthy": 1, | |
"tasksRunning": 1, | |
"tasksStaged": 0, | |
"tasksUnhealthy": 0, | |
"unreachableStrategy": { | |
"expungeAfterSeconds": 600, | |
"inactiveAfterSeconds": 300 | |
}, | |
"upgradeStrategy": { | |
"maximumOverCapacity": 0, | |
"minimumHealthCapacity": 0 | |
}, | |
"uris": [ | |
"file:///root/.dockercfg" | |
], | |
"user": null, | |
"version": "2017-04-10T23:43:55.404Z", | |
"versionInfo": { | |
"lastConfigChangeAt": "2017-04-10T21:32:22.532Z", | |
"lastScalingAt": "2017-04-10T23:43:55.404Z" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment