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