github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/metrics/input/mem_windows.nomad (about)

     1  job "mem_windows" {
     2    datacenters = ["dc1"]
     3    type        = "service"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "windows"
     8    }
     9  
    10    group "test" {
    11      count = 1
    12  
    13      task "test1" {
    14        driver = "raw_exec"
    15  
    16        template {
    17          data = <<EOH
    18  $mem_stress = @()
    19  for ($i = 0; $i -lt ###; $i++) { $mem_stress += ("a" * 200MB) }
    20    EOH
    21  
    22          destination = "local/memtest.ps1"
    23        }
    24  
    25        config {
    26          command = "powershell"
    27          args    = ["local/memtest.ps1"]
    28        }
    29      }
    30    }
    31  }