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

45 lines
629 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
restart {
2019-10-11 12:00:05 +00:00
mode = "fail"
attempts = 0
}
2019-10-11 12:00:05 +00:00
reschedule {
2019-10-11 12:00:05 +00:00
attempts = 3
interval = "10m"
unlimited = false
}
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 = [
2019-10-11 12:00:05 +00:00
"-m",
"2",
"-t",
"120",
]
}
2019-10-11 12:00:05 +00:00
resources {
cpu = 4096
memory = 1024
}
}
}
2019-10-11 12:00:05 +00:00
}