Files
nomad/website/content/docs/autoscaling/plugins/strategy/fixed-value.mdx
Luiz Aoqui 334de88582 docs: restructure autoscaling plugins menu (#10534)
* docs: restructure autoscaling plugins menu

* docs: add autoscaling threshold strategy (#10535)
2021-05-07 14:21:50 -04:00

36 lines
789 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
layout: docs
page_title: 'Autoscaling Plugins: Fixed Value'
description: The "fixed-value" strategy plugin sets a pre-defined value when scaling.
---
# Fixed Value Strategy Plugin
The `fixed-value` strategy receives a count value as an input configuration
option and returns a scaling action whose count is set to the same value. This
strategy is useful in situations where theres a known baseline for the
infrastructure that does not change often.
## Agent Configuration Options
```hcl
strategy "fixed-value" {
driver = "fixed-value"
}
```
## Policy Configuration Options
```hcl
check "fixed-value-check" {
# ...
strategy "fixed-value" {
value = 3
}
# ...
}
```
- `value` `(int: <required>)` - The value used by the Nomad Autoscaler to set
the target count.