github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/tools/autoscaling/plugins/strategy/app-sizing-percentile.mdx (about) 1 --- 2 layout: docs 3 page_title: 'Autoscaling Plugins: Dynamic Application Sizing Percentile' 4 description: The "app-sizing-percentile" strategy plugin uses percentile value of the historical usage to set resource recommendations. 5 --- 6 7 # Dynamic Application Sizing Percentile Strategy Plugin 8 9 <EnterpriseAlert> 10 This functionality only exists in Nomad Autoscaler Enterprise. This is not 11 present in the open source version of Nomad Autoscaler. 12 </EnterpriseAlert> 13 14 The `app-sizing-percentile` plugin calculates its result based on a desired 15 percentile value from the dataset. 16 17 The plugin applies an exponential weight decay to data, in order to give 18 more significance to recent data over older data. It also adjusts its calculation 19 based on the amount of resources used per unit of time. This load-adjusted 20 calculation results in values that are more likely to actually meet the usage 21 needs of the workload when compared to the traditional time-based percentile 22 calculation. 23 24 This Dynamic Application Sizing plugin is the most versatile, since the percentile 25 level can be fine-tuned as needed. If your workload can withstand occasional OOM 26 errors gracefully, using a 98th percentile for memory instead of app-sizing-max 27 could result in smaller recommendations and subsequently more resource availability 28 for other tasks. A 95th to 90th percentile for CPU could have the same effect. 29 30 ## Agent Configuration Options 31 32 The `app-sizing-percentile` plugin is automatically launched by Nomad Autoscaler 33 Enterprise and so the following setup is optional. 34 35 ```hcl 36 strategy "target-value" { 37 driver = "target-value" 38 } 39 ``` 40 41 ## Policy Configuration Options 42 43 ```hcl 44 check "p95" { 45 strategy "app-sizing-percentile" { 46 percentile = "95" 47 } 48 } 49 ``` 50 51 - `percentile` `(int: 99)` - Specifies the percentile value to use when performing 52 the strategy calculation.