github.com/smithx10/nomad@v0.9.1-rc1/e2e/spread/input/multiple_spread.nomad (about) 1 job "r1" { 2 datacenters = ["dc1", "dc2"] 3 type = "service" 4 spread { 5 attribute ="${node.datacenter}" 6 weight = 100 7 } 8 group "test1" { 9 count = 10 10 spread { 11 attribute ="${meta.rack}" 12 weight = 100 13 target "r1" { 14 percent = 70 15 } 16 target "r2" { 17 percent = 30 18 } 19 } 20 task "test" { 21 driver = "raw_exec" 22 23 config { 24 command = "bash" 25 args = ["-c", "sleep 15000"] 26 } 27 } 28 } 29 }