github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/e2e/scalingpolicies/input/namespace_a_1.nomad (about) 1 job "horizontally_scalable" { 2 datacenters = ["dc1"] 3 type = "service" 4 namespace = "NamespaceA" 5 6 constraint { 7 attribute = "${attr.kernel.name}" 8 value = "linux" 9 } 10 11 group "horizontally_scalable" { 12 13 scaling { 14 min = 1 15 max = 10 16 enabled = true 17 18 policy { 19 // Setting a single value allows us to check the policy block is 20 // handled opaquely by Nomad. 21 cooldown = "13m" 22 } 23 } 24 25 task "test" { 26 driver = "raw_exec" 27 28 config { 29 command = "bash" 30 args = ["-c", "sleep 15000"] 31 } 32 } 33 } 34 }