github.com/hernad/nomad@v1.6.112/e2e/events/input/large-job.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "events" { 5 datacenters = ["dc1"] 6 7 constraint { 8 attribute = "${attr.kernel.name}" 9 value = "linux" 10 } 11 12 group "one" { 13 count = 3 14 15 update { 16 max_parallel = 3 17 auto_promote = true 18 canary = 2 19 min_healthy_time = "1s" 20 } 21 22 task "one" { 23 driver = "raw_exec" 24 25 env { 26 version = "1" 27 } 28 29 config { 30 command = "/bin/sleep" 31 32 # change args to update the job, the only changes 33 args = ["1000000"] 34 } 35 36 resources { 37 cpu = 20 38 memory = 2000000 39 } 40 } 41 } 42 } 43