github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/tools/autoscaling/agent/dynamic_application_sizing.mdx (about) 1 --- 2 layout: docs 3 page_title: dynamic_application_sizing Stanza - Nomad Autoscaler Agent Configuration 4 description: >- 5 The "dynamic_application_sizing" block configures the Nomad Autoscaler agent 6 options for Dynamic Application Sizing. 7 --- 8 9 # `dynamic_application_sizing` Block 10 11 <Placement groups={['dynamic_application_sizing']} /> 12 13 <EnterpriseAlert> 14 This functionality only exists in Nomad Autoscaler Enterprise. This is not 15 present in the open source version of Nomad Autoscaler. 16 </EnterpriseAlert> 17 18 ~> Note that currently Prometheus is the only APM availible for Dynamic Application Sizing 19 20 The `dynamic_application_sizing` blocks configures the Nomad Autoscaler agent 21 options for Dynamic Application Sizing. Learn more about the Dynamic 22 Application Sizing functionality in the 23 [Dynamic Application Sizing Concepts guide][das_learn_guide] 24 25 ```hcl 26 dynamic_application_sizing { 27 evaluate_after = "1h" 28 metrics_preload_threshold = "12h" 29 } 30 ``` 31 32 ## `dynamic_application_sizing` Parameters 33 34 - `cpu_metric` `(string: "nomad_client_allocs_cpu_total_ticks")` - The APM 35 metric to use for querying the historical CPU usage of a task. 36 37 - `evaluate_after` `(string: "24h")` - Specifies how much historical data must 38 be available for a task before the Autoscaler starts generating 39 recommendations. 40 41 - `group_label` `(string: "task_group")` - The label used by the APM to store 42 the name of a task group. It is used by the Autoscaler when querying the APM 43 for metrics. 44 45 - `job_label` `(string: "exported_job")` - The label used by the APM to store 46 the ID of a job. It is used by the Autoscaler when querying the APM for 47 metrics. 48 49 - `memory_metric` `(string: "nomad_client_allocs_memory_usage")` - The APM 50 metric to use for querying the historical memory usage of a task. 51 52 - `metrics_preload_threshold` `(string: "168h")` - Specifies how much 53 historical data the Autoscaler will preload from the APM when it starts. 54 55 - `namespace_label` `(string: "namespace")` - The label used by the APM to 56 store the namespace of a job. It is used by the Autoscaler when querying the 57 APM for metrics. 58 59 - `task_label` `(string: "task")` - The label used by the APM to store the 60 name of a task. It is used by the Autoscaler when querying the APM for 61 metrics. 62 63 [das_learn_guide]: https://learn.hashicorp.com/tutorials/nomad/dynamic-application-sizing-concepts