-
Notifications
You must be signed in to change notification settings - Fork 0
/
job_at_vlive.hcl
51 lines (46 loc) · 1.35 KB
/
job_at_vlive.hcl
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
job "at_vlive" {
type = "system"
datacenters = ["dc1"]
constraint {
attribute = "${node.class}"
operator = "=="
value = "bigbiglarge"
}
group "vlive" {
restart {
mode = "delay"
}
meta {
deploy_nonce = 1
}
task "warrior-vlive" {
driver = "docker"
resources {
memory = 384
}
config {
args = [
"--concurrent",
"10",
"nepeat"
]
logging {
type = "loki"
config {
loki-url = "http://loki.fmt2.generalprogramming.org/loki/api/v1/push"
loki-retries = "5"
loki-batch-size = "400"
loki-external-labels = "container_name={{.Name}},group=archiveteam,job=${NOMAD_JOB_NAME}"
}
}
labels = {
"com.centurylinklabs.watchtower.enable" = "true"
}
image = "atdr.meo.ws/archiveteam/vlive-grab"
force_pull = true
// worst case scenario, 512 gives enough room for disaster
memory_hard_limit = 512
}
}
}
}