Skip to content

Instantly share code, notes, and snippets.

@golonzovsky
Last active July 26, 2016 07:29
Show Gist options
  • Select an option

  • Save golonzovsky/8e8e0c7e2acc69225c9757adbe1ccc15 to your computer and use it in GitHub Desktop.

Select an option

Save golonzovsky/8e8e0c7e2acc69225c9757adbe1ccc15 to your computer and use it in GitHub Desktop.
example of tomcat startup json for marathon, see https://github.com/mesosphere/marathon/blob/master/examples/Tomcat.json
{
"id": "/tomcat-test-calendar-test",
"cmd": "rm -rf apache-tomcat-*/webapps/* && mv *.war apache-tomcat-*/webapps && cd apache-tomcat-* && cat ./conf/server.xml | sed \"s/8080/$PORT0/g\" | sed \"s/8443/$PORT1/g\" | sed \"s/8009/$PORT2/g\" | sed \"s/8005/$PORT3/g\" > ./conf/server-mesos.xml && ./bin/catalina.sh run -config ./conf/server-mesos.xml",
"cpus": 0.1,
"mem": 128,
"disk": 0,
"instances": 3,
"constraints": [
[
"hostname",
"CLUSTER",
"vdev14.int.com"
]
],
"healthChecks": [
{
"path": "/Calendar",
"protocol": "HTTP",
"portIndex": 0,
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3,
"ignoreHttp1xx": false
}
],
"labels": {
"HAPROXY_GROUP": "external,internal"
},
"portDefinitions": [
{
"port": 10002,
"protocol": "tcp",
"name": "http",
"labels": {}
},
{
"port": 10003,
"protocol": "tcp",
"name": "ssl",
"labels": {}
},
{
"port": 10004,
"protocol": "tcp",
"name": "ajp",
"labels": {}
},
{
"port": 10005,
"protocol": "tcp",
"name": "shutdown",
"labels": {}
}
],
"uris": [
"http://www.pirbot.com/mirrors/apache/tomcat/tomcat-8/v8.5.4/bin/apache-tomcat-8.5.4.tar.gz",
"https://gwt-examples.googlecode.com/files/Calendar.war"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment