-
Notifications
You must be signed in to change notification settings - Fork 1
/
marathon.json.conf
34 lines (34 loc) · 1021 Bytes
/
marathon.json.conf
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
{
"id": "{{ .DEPLOY_ENV }}.abelwatch",
"cpus": 0.1,
"mem": 64.0,
"instances": 1,
"backoffSeconds": 1,
"backoffFactor": 1.01,
"maxLaunchDelaySeconds": 30,
"ports": [],
"cmd": "chmod +x abelwatch-linux-amd64 && ./abelwatch-linux-amd64 --wasp-url ${WASP_URL} --abel-url ${ABEL_URL} --slack-webhook ${SLACK_WEBHOOK} --wasp-namespace ${WASP_NAMESPACE} --pid PID",
"uris": [
"https://github.com/indix/abelwatch/releases/download/v0.0.2/abelwatch-linux-amd64"
],
"upgradeStrategy": {
"minimumHealthCapacity": 0.9,
"maximumOverCapacity": 0.1
},
"env": {
"WASP_URL": "{{ .Env.WASP_URL }}",
"WASP_NAMESPACE": "{{ .Env.WASP_NAMESPACE }}",
"ABEL_URL": "{{ .Env.ABEL_URL }}",
"SLACK_WEBHOOK": "{{ .Env.SLACK_WEBHOOK }}"
},
"healthChecks": [
{
"protocol": "COMMAND",
"command": { "value": "ps -p $(cat PID) > /dev/null" },
"gracePeriodSeconds": 240,
"intervalSeconds": 60,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 20
}
]
}