github.com/uchennaokeke444/nomad@v0.11.8/e2e/metrics/input/memstress.nomad (about)

     1  job "memstress" {
     2    datacenters = ["dc1", "dc2"]
     3    type        = "batch"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      value     = "linux"
     8    }
     9  
    10    group "memstress" {
    11      count = 1
    12  
    13      task "memstress" {
    14        driver = "docker"
    15  
    16        config {
    17          image = "progrium/stress"
    18  
    19          args = [
    20            "--vm",
    21            "2",
    22            "--vm-bytes",
    23            "128M",
    24            "--timeout",
    25            "120",
    26          ]
    27        }
    28  
    29        resources {
    30          cpu    = 1024
    31          memory = 256
    32        }
    33      }
    34    }
    35  }