Skip to content

Instantly share code, notes, and snippets.

@maxkarelov
Created October 19, 2016 18:19
Show Gist options
  • Save maxkarelov/b3a799bddcf30dfac45908dfa6f927b3 to your computer and use it in GitHub Desktop.
Save maxkarelov/b3a799bddcf30dfac45908dfa6f927b3 to your computer and use it in GitHub Desktop.
marathon application requests for seed and regular nodes
# SEED NODE
{
"id": "/mycoolenv/cassandra-seed",
"cmd": "chown -R cassandra /var/lib/cassandra && start $SEED",
"cpus": 0.5,
"mem": 400,
"disk": 0,
"instances": 1,
"constraints": [
[
"hostname",
"UNIQUE"
]
],
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "poklet/cassandra",
"network": "HOST",
"privileged": true,
"parameters": [],
"forcePullImage": false
}
},
"env": {
"SEED": ""
},
"labels": {
"_tonomi_application": "cassandra",
"_tonomi_environment": "test",
"_environment_node_type": "cassandra-seed"
},
"portDefinitions": [
{
"port": 10012,
"protocol": "tcp",
"labels": {}
}
]
}
# REGULAR NODE
{
"id": "/mycoolenv/cassandra-node",
"cmd": "chown -R cassandra /var/lib/cassandra && start $SEED",
"cpus": 0.5,
"mem": 400,
"disk": 0,
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "poklet/cassandra",
"network": "HOST",
"privileged": true,
"parameters": [],
"forcePullImage": false
}
},
"env": {
"SEED": "172.31.9.194"
},
"labels": {
"_tonomi_application": "cassandra",
"_tonomi_environment": "test",
"_environment_node_type": "cassandra-node"
},
"portDefinitions": [
{
"port": 10000,
"protocol": "tcp",
"labels": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment