67b87e46f1
This test exercises the behavior of clients that become disconnected and have their allocations replaced. Future test cases will exercise the `max_client_disconnect` field on the job spec.
35 lines
525 B
HCL
35 lines
525 B
HCL
job "lost_simple" {
|
|
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
group "group" {
|
|
|
|
count = 2
|
|
|
|
constraint {
|
|
attribute = "${attr.kernel.name}"
|
|
value = "linux"
|
|
}
|
|
|
|
constraint {
|
|
operator = "distinct_hosts"
|
|
value = "true"
|
|
}
|
|
|
|
task "task" {
|
|
driver = "docker"
|
|
|
|
config {
|
|
image = "busybox:1"
|
|
command = "httpd"
|
|
args = ["-v", "-f", "-p", "8001", "-h", "/var/www"]
|
|
}
|
|
|
|
resources {
|
|
cpu = 128
|
|
memory = 128
|
|
}
|
|
}
|
|
}
|
|
}
|