Last active
August 29, 2015 14:18
-
-
Save samklr/88f11df5ab67c0736b7a to your computer and use it in GitHub Desktop.
Cassandra Marathon
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": "/ctrlpkw/db", | |
"apps": [ | |
{ | |
"id": "samklr/risk-metrix", | |
"apps": [ | |
{ | |
"id": "samklr/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