github.com/hernad/nomad@v1.6.112/e2e/metrics/input/cpustress.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "cpustress" { 5 datacenters = ["dc1", "dc2"] 6 type = "batch" 7 8 constraint { 9 attribute = "${attr.kernel.name}" 10 value = "linux" 11 } 12 13 group "cpustress" { 14 count = 1 15 16 task "cpustress" { 17 driver = "docker" 18 19 config { 20 image = "progrium/stress" 21 22 args = [ 23 "--cpu", 24 "2", 25 "--timeout", 26 "600", 27 ] 28 } 29 30 resources { 31 cpu = 2056 32 memory = 256 33 } 34 } 35 } 36 }