2019-04-02 03:28:18 +00:00
|
|
|
job "cpustress" {
|
|
|
|
datacenters = ["dc1", "dc2"]
|
|
|
|
type = "batch"
|
|
|
|
group "cpustress" {
|
|
|
|
count = 1
|
|
|
|
restart {
|
|
|
|
mode = "fail"
|
|
|
|
attempts = 0
|
|
|
|
}
|
|
|
|
reschedule {
|
|
|
|
attempts = 3
|
|
|
|
interval = "10m"
|
|
|
|
unlimited = false
|
|
|
|
}
|
|
|
|
task "cpustress" {
|
|
|
|
driver = "docker"
|
|
|
|
|
|
|
|
config {
|
|
|
|
image = "progrium/stress"
|
|
|
|
args = [
|
|
|
|
"-c", "4",
|
2019-04-03 01:38:56 +00:00
|
|
|
"-t", "600"
|
2019-04-02 03:28:18 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
resources {
|
|
|
|
cpu = 4096
|
|
|
|
memory = 256
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|