-
Notifications
You must be signed in to change notification settings - Fork 4
/
dp-search-api-template.nomad
48 lines (48 loc) · 1.06 KB
/
dp-search-api-template.nomad
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
job "dp-search-api" {
datacenters = ["DATA_CENTER"]
constraint {
}
update {
stagger = "10s"
max_parallel = 1
}
group "dp-search-api" {
task "dp-search-api" {
artifact {
source = "s3::S3_TAR_FILE"
destination = "."
// The Following options are needed if no IAM roles are provided
// options {
// aws_access_key_id = ""
// aws_access_key_secret = ""
// }
}
env {
ELASTIC_URL = "ELASTIC_SEARCH_URL"
PORT = "${NOMAD_PORT_http}"
HUMAN_LOG = "HUMAN_LOG_FLAG"
}
driver = "exec" // To run on OSX change this to raw_exec
config {
command = "bin/dp-search-api"
args = []
}
resources {
cpu = 600
memory = 400
network {
port "http" {}
}
}
service {
port = "http"
check {
type = "http"
path = "HEALTHCHECK_ENDPOINT"
interval = "10s"
timeout = "2s"
}
}
}
}
}