github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/jobspec/test-fixtures/multiregion.hcl (about)

     1  job "multiregion_job" {
     2  
     3    multiregion {
     4  
     5      strategy {
     6        max_parallel = 1
     7        on_failure   = "fail_all"
     8      }
     9  
    10      region "west" {
    11        count       = 2
    12        datacenters = ["west-1"]
    13        meta {
    14          region_code = "W"
    15        }
    16      }
    17  
    18      region "east" {
    19        count       = 1
    20        datacenters = ["east-1", "east-2"]
    21        meta {
    22          region_code = "E"
    23        }
    24      }
    25    }
    26  }