open-nomad/e2e/metrics/input/cpustress.nomad

34 lines
482 B
Plaintext
Raw Normal View History

job "cpustress" {
datacenters = ["dc1", "dc2"]
2019-10-11 12:00:05 +00:00
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "cpustress" {
count = 1
2019-10-11 12:00:05 +00:00
task "cpustress" {
driver = "docker"
config {
image = "progrium/stress"
2019-10-11 12:00:05 +00:00
args = [
"--cpu",
"2",
"--timeout",
2019-10-11 12:00:05 +00:00
"600",
]
}
resources {
cpu = 2056
memory = 256
}
}
}
2019-10-11 12:00:05 +00:00
}