2019-12-16 13:34:17 +00:00
|
|
|
job "mem_windows" {
|
2019-11-26 13:05:42 +00:00
|
|
|
datacenters = ["dc1"]
|
|
|
|
type = "service"
|
|
|
|
|
|
|
|
constraint {
|
|
|
|
attribute = "${attr.kernel.name}"
|
|
|
|
value = "windows"
|
|
|
|
}
|
|
|
|
|
|
|
|
group "test" {
|
|
|
|
count = 1
|
|
|
|
|
|
|
|
task "test1" {
|
|
|
|
driver = "raw_exec"
|
|
|
|
|
|
|
|
template {
|
|
|
|
data = <<EOH
|
2019-12-16 13:34:17 +00:00
|
|
|
$mem_stress = @()
|
|
|
|
for ($i = 0; $i -lt ###; $i++) { $mem_stress += ("a" * 200MB) }
|
2019-11-26 13:05:42 +00:00
|
|
|
EOH
|
|
|
|
|
2019-12-16 13:34:17 +00:00
|
|
|
destination = "local/memtest.ps1"
|
2019-11-26 13:05:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
config {
|
|
|
|
command = "powershell"
|
2019-12-16 13:34:17 +00:00
|
|
|
args = ["local/memtest.ps1"]
|
2019-11-26 13:05:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|