2018-03-01 19:21:32 +00:00
|
|
|
job "foo" {
|
|
|
|
datacenters = ["dc1"]
|
2019-07-20 14:55:07 +00:00
|
|
|
type = "batch"
|
|
|
|
|
2018-03-01 19:21:32 +00:00
|
|
|
migrate {
|
2019-07-20 14:55:07 +00:00
|
|
|
max_parallel = 2
|
|
|
|
health_check = "task_states"
|
|
|
|
min_healthy_time = "11s"
|
|
|
|
healthy_deadline = "11m"
|
2018-03-01 19:21:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group "bar" {
|
|
|
|
count = 3
|
2019-07-20 14:55:07 +00:00
|
|
|
|
2018-03-01 19:21:32 +00:00
|
|
|
task "bar" {
|
|
|
|
driver = "raw_exec"
|
2019-07-20 14:55:07 +00:00
|
|
|
|
2018-03-01 19:21:32 +00:00
|
|
|
config {
|
2019-07-20 14:55:07 +00:00
|
|
|
command = "bash"
|
|
|
|
args = ["-c", "echo hi"]
|
2018-03-01 19:21:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
migrate {
|
2019-07-20 14:55:07 +00:00
|
|
|
max_parallel = 3
|
|
|
|
health_check = "checks"
|
|
|
|
min_healthy_time = "1s"
|
|
|
|
healthy_deadline = "1m"
|
2018-03-01 19:21:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|