Nomad
Dynamic Application Sizing Nomad Task Target
Enterprise
This functionality only exists in Nomad Autoscaler Enterprise. This is not present in the open source version of Nomad Autoscaler.
Note that currently Prometheus is the only APM available for Dynamic Application Sizing
The app-sizing-nomad
target plugin reports on the current task resource value
as well as submits recommendations to Nomad via the recommendations API endpoint
based on the result of the Dynamic Application Sizing strategy calculations.
Agent Configuration Options
The app-sizing-nomad
plugin is automatically launched by Nomad Autoscaler
Enterprise and so the following setup is optional.
target "app-sizing-nomad" {
driver = "app-sizing-nomad"
}
Policy Configuration Options
If using the Nomad job specification scaling block to configure the scaling policy for a task resource, the following section can be omitted as Nomad will populate them on job submission. Please also refer to the Nomad Autoscaler policy documentation for additional detail and guidance.
check "mem" {
...
target "app-sizing-nomad" {
Namespace = "default"
Job = "example"
Group = "cache"
Task = "Redis"
Resource = "MemoryMB"
}
...
Region
(string: "")
- The region in which the job resides as defined by theregion
parameter within the job specification.Namespace
(string: "")
- The namespace in which the job resides as defined by thenamespace
parameter within the job specification.Job
(string: "")
- The job identifier which contains the task group to scale as defined within the job specificationjob
block.Group
(string: "")
- The name of the task group to scale as defined in the job specificationgroup
block.Task
(string: "")
- The name of the task to scale as defined in the job specificationtask
block.Resource
(string: "")
- The resource to scale as defined by the job specificationresource
block. Supports eitherCPU
orMemoryMB
.