-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlivy-marathon.json
70 lines (70 loc) · 2.32 KB
/
livy-marathon.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"id": "/livy",
"instances": 1,
"cpus": 4,
"mem": 4096,
"cmd": "env | sort && sed \"s/__LIVY_SERVER_PORT__/${PORT_LIVY}/g\" ${MESOS_SANDBOX}/livy-mesos-client.conf > ${HOME}/livy/conf/livy.conf && /usr/local/bin/livy.sh",
"networks": [
{
"mode": "host"
}
],
"container": {
"type": "MESOS",
"docker": {
"image": "vishnumohan/livy-dcos:0.4.0-1.10.2-2.2.0",
"forcePullImage": false
}
},
"fetch": [
{
"uri": "https://s3.amazonaws.com/vishnu-mohan/livy/livy-mesos-client.conf",
"extract": false,
"executable": false,
"cache": false
}
],
"env": {
"LD_LIBRARY_PATH": "/opt/mesosphere/libmesos-bundle/lib/:${LD_LIBRARY_PATH}",
"LIVY_SERVER_JAVA_OPTS": "-Xms512m -Xmx512m -XX:+UseG1GC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime -XX:+PrintPromotionFailure -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M -Xloggc:/mnt/mesos/sandbox/gc.log",
"MESOS_NATIVE_LIBRARY": "/opt/mesosphere/libmesos-bundle/lib/libmesos.so",
"MESOS_NATIVE_JAVA_LIBRARY": "/opt/mesosphere/libmesos-bundle/lib/libmesos.so",
"TERM": "xterm-256color"
},
"labels": {
"MARATHON_SINGLE_INSTANCE_APP": "true",
"DCOS_PACKAGE_METADATA": "eyJpbWFnZXMiOnsiaWNvbi1zbWFsbCI6Imh0dHBzOi8vbGl2eS5pbmN1YmF0b3IuYXBhY2hlLm9yZy9hc3NldHMvdGhlbWVzL2FwYWNoZS9pbWcvbG9nby5wbmciLCJpY29uLW1lZGl1bSI6Imh0dHBzOi8vbGl2eS5pbmN1YmF0b3IuYXBhY2hlLm9yZy9hc3NldHMvdGhlbWVzL2FwYWNoZS9pbWcvbG9nby5wbmciLCJpY29uLWxhcmdlIjoiaHR0cHM6Ly9saXZ5LmluY3ViYXRvci5hcGFjaGUub3JnL2Fzc2V0cy90aGVtZXMvYXBhY2hlL2ltZy9sb2dvLnBuZyJ9fQo=",
"DCOS_SERVICE_NAME": "livy",
"DCOS_SERVICE_PORT_INDEX": "0",
"DCOS_SERVICE_SCHEME": "http"
},
"portDefinitions": [
{
"port": 0,
"protocol": "tcp",
"name": "livy",
"labels": {
"VIP_0": "/livy:8998"
}
}
],
"healthChecks": [
{
"protocol": "MESOS_HTTP",
"path": "/sessions",
"portIndex": 0,
"gracePeriodSeconds": 60,
"intervalSeconds": 20,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 3
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
},
"unreachableStrategy": {
"expungeAfterSeconds": 0,
"inactiveAfterSeconds": 0
}
}