Nomad
policy Block
| Placement | policy |
The policy block configures the Nomad Autoscaler's policy handling.
policy {
dir = "/opt/nomad-autoscaler/policies"
default_cooldown = "2m"
source "nomad" {
enabled = false
}
}
policy Parameters
default_cooldown(string: "5m")- The default cooldown that will be applied to all scaling policies which do not specify a cooldown period.default_evaluation_interval(string: "10s")- The default evaluation interval that will be applied to all scaling policies which do not specify an evaluation interval.dir(string: "")- The path to a directory used to load scaling policies.source(Source)- Configures policy sources. Thenomadsource is enabled by default and thefilesource is automatically enabled ifdiris set.
source Parameters
The source block is used to configure scaling policies sources. Supported
sources are file and nomad.
policy {
source "nomad" {
enabled = false
}
}
enabled(bool: true)- Defines if the scaling policy source should be enabled or disabled.