fix indentation
This commit is contained in:
parent
f443c7d321
commit
35f6db47b8
|
@ -350,17 +350,17 @@ job "example" {
|
||||||
# https://www.nomadproject.io/docs/job-specification/affinity.html
|
# https://www.nomadproject.io/docs/job-specification/affinity.html
|
||||||
#
|
#
|
||||||
# affinity {
|
# affinity {
|
||||||
# attribute specifies the name of a node attribute or metadata
|
# attribute specifies the name of a node attribute or metadata
|
||||||
# attribute = "${node.datacenter}"
|
# attribute = "${node.datacenter}"
|
||||||
#
|
|
||||||
# value specifies the desired attribute value. In this example Nomad
|
|
||||||
# will prefer placement in the "us-west1" datacenter.
|
|
||||||
# value = "us-west1"
|
|
||||||
|
|
||||||
# weight can be used to indicate relative preference
|
# value specifies the desired attribute value. In this example Nomad
|
||||||
# when the job has more than one affinity. It defaults to 50 if not set.
|
# will prefer placement in the "us-west1" datacenter.
|
||||||
# weight = 100
|
# value = "us-west1"
|
||||||
# }
|
|
||||||
|
# weight can be used to indicate relative preference
|
||||||
|
# when the job has more than one affinity. It defaults to 50 if not set.
|
||||||
|
# weight = 100
|
||||||
|
# }
|
||||||
|
|
||||||
# The "spread" stanza allows operators to increase the failure tolerance of
|
# The "spread" stanza allows operators to increase the failure tolerance of
|
||||||
# their applications by specifying a node attribute that allocations
|
# their applications by specifying a node attribute that allocations
|
||||||
|
@ -372,19 +372,19 @@ job "example" {
|
||||||
# https://www.nomadproject.io/docs/job-specification/spread.html
|
# https://www.nomadproject.io/docs/job-specification/spread.html
|
||||||
#
|
#
|
||||||
# spread {
|
# spread {
|
||||||
# attribute specifies the name of a node attribute or metadata
|
# attribute specifies the name of a node attribute or metadata
|
||||||
# attribute = "${node.datacenter}"
|
# attribute = "${node.datacenter}"
|
||||||
#
|
|
||||||
# targets can be used to define desired percentages of allocations
|
# targets can be used to define desired percentages of allocations
|
||||||
# for each targeted attribute value.
|
# for each targeted attribute value.
|
||||||
#
|
#
|
||||||
# target "us-east1" {
|
# target "us-east1" {
|
||||||
# percent = 60
|
# percent = 60
|
||||||
# }
|
# }
|
||||||
# target "us-west1" {
|
# target "us-west1" {
|
||||||
# percent = 40
|
# percent = 40
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# The "task" stanza creates an individual unit of work, such as a Docker
|
# The "task" stanza creates an individual unit of work, such as a Docker
|
||||||
# container, web application, or batch processing.
|
# container, web application, or batch processing.
|
||||||
|
|
Loading…
Reference in a new issue