Last active
January 18, 2018 18:19
-
-
Save rodrickbrown/20f90cbb035f71171e4f1235a5b9fbdd to your computer and use it in GitHub Desktop.
chronos marathon configuration
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
{ | |
"id": "/chronos", | |
"user": "root", | |
"cmd": "chronos run_jar --zk_hosts master0.prod.mesos:2181,master1.prod.mesos:2181,master2.prod.mesos:2181 --master zk://master0.prod.mesos:2181,master1.prod.mesos:2181,master2.prod.mesos:2181/mesos --mesos_framework_name chronos --hostname chronos.marathon.prod.mesos --zk_timeout 10000 --http_port $PORT0", | |
"cpus": 0.5, | |
"mem": 512, | |
"instances": 1, | |
"constraints": [ | |
[ | |
"hostname", "UNIQUE" | |
] | |
], | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "mesosphere/chronos:chronos-2.5.1-0.1.20171211074431.ubuntu1404-mesos-1.3.1", | |
"privileged": true, | |
"forcePullImage": true, | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ "containerPort": 0, "hostPort": 0, "servicePort": 0, "protocol": "tcp" }, | |
{ "containerPort": 0, "hostPort": 0, "servicePort": 0, "protocol": "tcp" } | |
] | |
} | |
}, | |
"healthChecks": [ | |
{ | |
"protocol": "HTTP", | |
"portIndex": 0, | |
"path": "/", | |
"gracePeriodSeconds": 120, | |
"intervalSeconds": 10, | |
"maxConsecutiveFailures": 3 | |
} | |
], | |
"labels": { | |
"HAPROXY_GROUP": "production", | |
"HAPROXY_0_PORT": "31300", | |
"HAPROXY_0_MODE": "http", | |
"HAPROXY_0_BACKEND_HTTP_OPTIONS": " option forwardfor\n http-request set-header X-Forwarded-Port %[dst_port]\n", | |
"ENV": "production" | |
}, | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.5, | |
"maximumOverCapacity": 0.1 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment