Created
March 30, 2015 20:42
-
-
Save 3h4x/e12d80471602e17adb9a to your computer and use it in GitHub Desktop.
This file contains hidden or 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": "/ctrlpkw", | |
"groups": [ | |
{ | |
"id": "/ctrlpkw/db", | |
"apps": [ | |
{ | |
"id": "/ctrlpkw/db/cassandra-seed", | |
"constraints": [["hostname", "UNIQUE"]], | |
"ports": [7199, 7000, 7001, 9160, 9042], | |
"requirePorts": true, | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "docker.touk.pl/cassandra", | |
"network": "HOST", | |
"privileged": true | |
} | |
}, | |
"env": { | |
"SEED": "cassandra-seed.db.ctrlpkw.marathon.mesos" | |
}, | |
"cpus": 4, | |
"mem": 4096.0, | |
"instances": 2, | |
"backoffSeconds": 1, | |
"backoffFactor": 1.15, | |
"maxLaunchDelaySeconds": 3600, | |
"healthChecks": [ | |
{ | |
"protocol": "TCP", | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 30, | |
"portIndex": 4, | |
"timeoutSeconds": 60, | |
"maxConsecutiveFailures": 30 | |
} | |
], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.5, | |
"maximumOverCapacity": 0.2 | |
} | |
}, | |
{ | |
"id": "/ctrlpkw/db/cassandra", | |
"constraints": [["hostname", "UNIQUE"]], | |
"ports": [7199, 7000, 7001, 9160, 9042], | |
"requirePorts": true, | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "docker.touk.pl/cassandra", | |
"network": "HOST", | |
"privileged": true | |
} | |
}, | |
"env": { | |
"SEED": "cassandra-seed.db.ctrlpkw.marathon.mesos" | |
}, | |
"cpus": 4, | |
"mem": 4096.0, | |
"instances": 1, | |
"backoffSeconds": 1, | |
"backoffFactor": 1.15, | |
"maxLaunchDelaySeconds": 3600, | |
"healthChecks": [ | |
{ | |
"protocol": "TCP", | |
"gracePeriodSeconds": 30, | |
"intervalSeconds": 30, | |
"portIndex": 4, | |
"timeoutSeconds": 60, | |
"maxConsecutiveFailures": 30 | |
} | |
], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.5, | |
"maximumOverCapacity": 0.2 | |
} | |
} | |
] | |
}, | |
{ | |
"id": "/ctrlpkw/app", | |
"apps": [ | |
{ | |
"id": "/ctrlpkw/app/ctrlpkw", | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "trombka/ctrl-pkw:latest", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"containerPort": 8080, | |
"servicePort": 8000, | |
"protocol": "tcp" | |
} | |
] | |
} | |
}, | |
"env": { | |
"CASSANDRA_CONTACT_POINT": | |
"cassandra-seed.db.ctrlpkw.marathon.mesos", | |
}, | |
"cpus": 1, | |
"mem": 512.0, | |
"instances": 1, | |
"backoffSeconds": 1, | |
"backoffFactor": 1.15, | |
"maxLaunchDelaySeconds": 3600, | |
"healthChecks": [ | |
{ | |
"protocol": "HTTP", | |
"portIndex": 0, | |
"timeoutSeconds": 60, | |
"maxConsecutiveFailures": 3 | |
} | |
], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.5, | |
"maximumOverCapacity": 0.2 | |
}, | |
"version": "2015-03-20T15:21Z" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment