forked from tkaburagi/various-workloads-on-nomad
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui-java.hcl
48 lines (44 loc) · 996 Bytes
/
ui-java.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
job "r2-ui-java" {
datacenters = ["dc1"]
type = "service"
group "java-process" {
count = 1
task "ui" {
driver = "java"
config {
jar_path = "local/nomad-snapshots-r2-0.0.1-SNAPSHOT.jar"
jvm_options = ["-Xmx2048m", "-Xms256m"]
}
resources {
cpu = 500
memory = 500
network {
port "http" {
static = 8080
}
}
}
env {
MYSQL_HOST = "jdbc:mysql://172.28.128.4:3306/handson?useSSL=false"
}
service {
name = "ui-java"
tags = ["java", "ui", "check"]
check {
type = "http"
interval = "10s"
timeout = "2s"
path = "/"
port = "http"
}
}
logs {
max_files = 10
max_file_size = 10
}
artifact {
source = "https://jar-tkaburagi.s3-ap-northeast-1.amazonaws.com/nomad-snapshots-r2-0.0.1-SNAPSHOT.jar"
}
}
}
}