open-nomad/jobspec/test-fixtures/multiregion.hcl
2023-04-10 15:36:59 +00:00

30 lines
456 B
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
job "multiregion_job" {
multiregion {
strategy {
max_parallel = 1
on_failure = "fail_all"
}
region "west" {
count = 2
datacenters = ["west-1"]
meta {
region_code = "W"
}
}
region "east" {
count = 1
datacenters = ["east-1", "east-2"]
meta {
region_code = "E"
}
}
}
}