Files
nomad/website/content/tools/autoscaling/plugins/strategy/fixed-value.mdx
Kevin Wang ddca508b0d feat(website): extract /plugins /tools docs (#11584)
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
Co-authored-by: Mike Nomitch <mnomitch@hashicorp.com>
2021-12-09 14:25:18 -05: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.