github.com/hernad/nomad@v1.6.112/e2e/metrics/input/memstress.nomad (about)

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