github.com/smithx10/nomad@v0.9.1-rc1/e2e/spread/input/even_spread.nomad (about)

     1  job "r1" {
     2    datacenters = ["dc1", "dc2"]
     3    type = "service"
     4  
     5    group "r1" {
     6      count = 6
     7      spread {
     8        attribute ="${node.datacenter}"
     9        weight = 100
    10      }
    11      task "test" {
    12        driver = "raw_exec"
    13  
    14        config {
    15          command = "bash"
    16          args    = ["-c", "sleep 15000"]
    17        }
    18      }
    19    }
    20  }