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

36 lines
523 B
Plaintext
Raw Normal View History

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