open-nomad/e2e/rescheduling/input/rescheduling_maxp.hcl
2019-07-20 16:55:07 +02:00

36 lines
549 B
HCL

job "demo2" {
datacenters = ["dc1"]
type = "service"
group "t2" {
count = 3
task "t2" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 170000"]
}
}
update {
max_parallel = 1
min_healthy_time = "1s"
auto_revert = false
healthy_deadline = "2s"
progress_deadline = "10s"
}
restart {
attempts = 0
mode = "fail"
}
reschedule {
unlimited = "true"
delay = "5s"
}
}
}