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

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

46 lines
701 B
Plaintext
Raw Normal View History

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
2018-03-29 16:35:45 +00:00
job "demo2" {
datacenters = ["dc1", "dc2"]
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
type = "service"
2018-03-29 16:35:45 +00:00
group "t2" {
count = 3
task "t2" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 170000"]
2018-03-29 16:35:45 +00:00
}
}
update {
2019-07-20 14:55:07 +00:00
max_parallel = 1
min_healthy_time = "1s"
auto_revert = false
healthy_deadline = "2s"
progress_deadline = "10s"
2018-03-29 16:35:45 +00:00
}
restart {
attempts = 0
mode = "fail"
}
reschedule {
unlimited = "true"
2019-07-20 14:55:07 +00:00
delay = "5s"
2018-03-29 16:35:45 +00:00
}
}
}