Skip to content

Commit

Permalink
Update mesos documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarin committed Jan 26, 2018
2 parents aef6bff + 7a844fc commit cf04d24
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This task will create a `Docker` image. To run a container with the `HMDA Platfo
For a 3 node cluster deployed through the [DC/OS CLI](https://docs.mesosphere.com/1.10/cli/), the following command can be used:

```shell
dcos marathon app add mesos/hmda-platform-bridge-mode.json
dcos marathon app add mesos/hmda-platform-host-mode.json
```

For more details, please refer to the Marathon Documentation
Expand Down
125 changes: 125 additions & 0 deletions mesos/hmda-platform-host-mode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"id": "/hmda2",
"instances": 3,
"cpus": 0.1,
"mem": 1024,
"disk": 0,
"gpus": 0,
"constraints": [],
"fetch": [],
"storeUrls": [],
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "hmda/hmda-platform:latest",
"network": "HOST",
"privileged": false,
"parameters": [],
"forcePullImage": true
}
},
"portDefinitions": [
{
"labels": {
"VIP_0": "/hmda2:10001"
},
"port": 10001,
"name": "filing"
},
{
"labels": {
"VIP_1": "/hmda2:10002"
},
"port": 10002,
"name": "admin"
},
{
"labels": {
"VIP_2": "/hmda2:10003"
},
"port": 10003,
"name": "public"
},
{
"labels": {
"VIP_3": "/hmda2:10004"
},
"port": 10004,
"name": "cluster"
}
],
"labels": {
"HAPROXY_GROUP": "external",
"HAPROXY_0_VHOST": "marathon-lb.marathon.mesos"
},
"readinessChecks": [],
"dependencies": [],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 1
},
"unreachableStrategy": {
"inactiveAfterSeconds": 300,
"expungeAfterSeconds": 600
},
"killSelection": "YOUNGEST_FIRST",
"requirePorts": true,
"env": {
"SERVICE_NAME": "hmda2.marathon.mesos",
"HMDA_RUNTIME_MODE": "prod",
"HMDA_HTTP_PORT": "10001",
"HMDA_HTTP_ADMIN_PORT": "10002",
"HMDA_HTTP_PUBLIC_PORT": "10003",
"PORT_19999": "10004"
},
"healthChecks": [
{
"gracePeriodSeconds": 300,
"ignoreHttp1xx": false,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 20,
"delaySeconds": 15
},
{
"gracePeriodSeconds": 300,
"ignoreHttp1xx": false,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 1,
"protocol": "HTTP",
"timeoutSeconds": 20,
"delaySeconds": 15
},
{
"gracePeriodSeconds": 300,
"ignoreHttp1xx": false,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 2,
"protocol": "HTTP",
"timeoutSeconds": 20,
"delaySeconds": 15
},
{
"gracePeriodSeconds": 300,
"ignoreHttp1xx": false,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"path": "/cluster/members",
"portIndex": 3,
"protocol": "HTTP",
"timeoutSeconds": 20,
"delaySeconds": 15
}
]
}

0 comments on commit cf04d24

Please sign in to comment.