open-nomad/e2e/rescheduling/input/rescheduling_update.nomad

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
672 B
Plaintext
Raw Normal View History

job "test4" {
datacenters = ["dc1", "dc2"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
type = "service"
group "t4" {
count = 3
2018-03-29 16:35:45 +00:00
task "t4" {
driver = "raw_exec"
2018-03-29 16:35:45 +00:00
config {
2018-03-29 16:35:45 +00:00
command = "bash"
args = ["-c", "sleep 5000"]
}
}
2018-03-29 16:35:45 +00:00
update {
2019-07-20 14:55:07 +00:00
max_parallel = 1
min_healthy_time = "3s"
auto_revert = false
healthy_deadline = "5s"
progress_deadline = "10s"
}
2018-03-29 16:35:45 +00:00
restart {
2018-03-29 16:35:45 +00:00
attempts = 0
delay = "0s"
mode = "fail"
}
2018-03-29 16:35:45 +00:00
reschedule {
2018-03-29 16:35:45 +00:00
attempts = 3
interval = "5m"
unlimited = false
2018-03-29 16:35:45 +00:00
}
}
2018-03-29 16:35:45 +00:00
}