Files
nomad/command/asset/pool.nomad.hcl
Luiz Aoqui 6c64847e1b np: scheduler configuration updates (#17575)
* jobspec: rename node pool scheduler_configuration

In HCL specifications we usually call configuration blocks `config`
instead of `configuration`.

* np: add memory oversubscription config

* np: make scheduler config ENT
2023-06-19 11:41:46 -04:00

30 lines
1022 B
HCL

node_pool "example" {
description = "Example node pool"
# meta is optional metadata on the node pool, defined as key-value pairs.
# The scheduler does not use node pool metadata as part of scheduling.
meta {
environment = "prod"
owner = "sre"
}
# The scheduler configuration options specific to this node pool. This block
# supports a subset of the fields supported in the global scheduler
# configuration as described at:
# https://developer.hashicorp.com/nomad/docs/commands/operator/scheduler/set-config
#
# * scheduler_algorithm is the scheduling algorithm to use for the pool.
# If not defined, the global cluster scheduling algorithm is used.
#
# * memory_oversubscription_enabled specifies whether memory oversubscription
# is enabled. If not defined, the global cluster configuration is used.
#
# Available only in Nomad Enterprise.
# scheduler_config {
# scheduler_algorithm = "spread"
# memory_oversubscription_enabled = true
# }
}