Skip to content

Commit f714ef5

Browse files
committed
Added service description.
1 parent 0bdf404 commit f714ef5

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

marathon-service-description.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"id": "/micro/math-service",
3+
"args": [
4+
"-u",
5+
"https://github.com/mesos-playground/MathService/releases/download/2017.09.16-1/MathService.tgz"
6+
],
7+
"instances": 1,
8+
"cpus": 0.1,
9+
"mem": 32,
10+
"disk": 0,
11+
"gpus": 0,
12+
"constraints": [],
13+
"fetch": [],
14+
"storeUrls": [],
15+
"backoffSeconds": 1,
16+
"backoffFactor": 1.15,
17+
"maxLaunchDelaySeconds": 3600,
18+
"container": {
19+
"type": "DOCKER",
20+
"volumes": [],
21+
"docker": {
22+
"image": "mesosplayground/nsc",
23+
"network": "USER",
24+
"portMappings": [
25+
{
26+
"containerPort": 3000,
27+
"hostPort": 0,
28+
"servicePort": 10101,
29+
"protocol": "tcp",
30+
"name": "math-service",
31+
"labels": {
32+
"VIP_0": "/micro/math-service:3000"
33+
}
34+
}
35+
],
36+
"privileged": false,
37+
"parameters": [],
38+
"forcePullImage": false
39+
}
40+
},
41+
"healthChecks": [
42+
{
43+
"gracePeriodSeconds": 300,
44+
"intervalSeconds": 60,
45+
"timeoutSeconds": 20,
46+
"maxConsecutiveFailures": 3,
47+
"portIndex": 0,
48+
"path": "/act?role=health&cmd=ping&ver=1",
49+
"protocol": "MESOS_HTTP",
50+
"delaySeconds": 15
51+
}
52+
],
53+
"readinessChecks": [],
54+
"dependencies": [],
55+
"upgradeStrategy": {
56+
"minimumHealthCapacity": 1,
57+
"maximumOverCapacity": 1
58+
},
59+
"ipAddress": {
60+
"groups": [],
61+
"networkName": "dcos"
62+
},
63+
"unreachableStrategy": {
64+
"inactiveAfterSeconds": 300,
65+
"expungeAfterSeconds": 600
66+
},
67+
"killSelection": "YOUNGEST_FIRST",
68+
"requirePorts": false
69+
}

0 commit comments

Comments
 (0)