docs: add fixed-value and pass-through autoscaler plugin docs. (#10278)

docs: add fixed-value and pass-through autoscaler plugin docs.
This commit is contained in:
James Rasell 2021-04-01 22:11:37 +02:00 committed by GitHub
parent 6bbbc19eb7
commit 138adfdc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 58 additions and 1 deletions

View File

@ -28,7 +28,7 @@ strategy "target-value" {
### Policy Configuration Options
```hcl
check {
check "target-value-check" {
...
strategy "target-value" {
target = 20
@ -44,6 +44,63 @@ check {
metric should be considered. Small threshold values can lead to output
fluctuation.
## 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.
## Pass-Through Strategy Plugin
The pass-through strategy is a very simple, yet useful strategy. It does not
add any extra computation on top of the metric query result, and instead uses
the APM query result as the scaling count. It doesn't have any configuration
options.
This allows the Nomad Autoscaler to be integrated into systems where the
scaling computation is done externally like an edge router, or easily derived
from a query such as running one allocation per item in a queue.
### Agent Configuration Options
```hcl
strategy "pass-through" {
driver = "pass-through"
}
```
### Policy Configuration Options
```hcl
check "pass-through-check" {
...
strategy "pass-through" {}
...
```
## Dynamic Application Sizing Average Strategy Plugin
<EnterpriseAlert>