Skip to content

Instantly share code, notes, and snippets.

@3h4x
Created March 30, 2015 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3h4x/f97c9387e5874686c2ce to your computer and use it in GitHub Desktop.
Save 3h4x/f97c9387e5874686c2ce to your computer and use it in GitHub Desktop.
{
"id": "/ctrlpkw/db",
"apps": [
{
"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,
"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,
"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
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment