github.com/hernad/nomad@v1.6.112/e2e/metrics/input/mem_windows.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "mem_windows" { 5 datacenters = ["dc1"] 6 type = "service" 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "windows" 11 } 12 13 group "test" { 14 count = 1 15 16 task "test1" { 17 driver = "raw_exec" 18 19 template { 20 data = <<EOH 21 $mem_stress = @() 22 for ($i = 0; $i -lt ###; $i++) { $mem_stress += ("a" * 200MB) } 23 EOH 24 25 destination = "local/memtest.ps1" 26 } 27 28 config { 29 command = "powershell" 30 args = ["local/memtest.ps1"] 31 } 32 } 33 } 34 }