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