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