github.com/hernad/nomad@v1.6.112/e2e/scaling/input/namespace_a_1.nomad (about) 1 # Copyright (c) HashiCorp, Inc. 2 # SPDX-License-Identifier: MPL-2.0 3 4 job "horizontally_scalable" { 5 datacenters = ["dc1"] 6 type = "service" 7 namespace = "NamespaceA" 8 9 update { 10 health_check = "task_states" 11 } 12 13 constraint { 14 attribute = "${attr.kernel.name}" 15 value = "linux" 16 } 17 18 group "horizontally_scalable" { 19 20 scaling { 21 min = 2 22 max = 3 23 enabled = true 24 25 policy {} 26 } 27 28 task "test" { 29 driver = "raw_exec" 30 31 config { 32 command = "bash" 33 args = ["-c", "sleep 15000"] 34 } 35 } 36 } 37 }