github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/spread/input/even_spread.nomad (about) 1 job "r1" { 2 datacenters = ["dc1", "dc2"] 3 type = "service" 4 5 constraint { 6 attribute = "${attr.kernel.name}" 7 value = "linux" 8 } 9 10 group "r1" { 11 count = 6 12 13 spread { 14 attribute = "${node.datacenter}" 15 weight = 100 16 } 17 18 task "test" { 19 driver = "raw_exec" 20 21 config { 22 command = "bash" 23 args = ["-c", "sleep 15000"] 24 } 25 } 26 } 27 }