Skip to content

Commit f9871fb

Browse files
authored
docs: add CLI and config docs for the Autoscaler policy source config (#11559)
1 parent b4e338c commit f9871fb

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: docs
3+
page_title: source Stanza - Nomad Autoscaler Agent Configuration
4+
description: >-
5+
The "source" block is used to configure scaling target sources.
6+
---
7+
8+
# `source` Block
9+
10+
<Placement groups={['policy', 'source']} />
11+
12+
The `source` block is used to configure scaling target sources.
13+
14+
```hcl
15+
policy {
16+
source "nomad" {
17+
enabled = false
18+
}
19+
}
20+
```
21+
22+
Supported sources are `file` and `nomad`.
23+
24+
### `source` Parameters
25+
26+
- `enabled` `(bool: true)` - Defines if the scaling policy source should be
27+
enabled or disabled.

website/content/docs/autoscaling/cli.mdx

+5
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ passed in via CLI arguments. The `agent` command accepts the following arguments
9191
`cluster` and `horizontal` queues. Nomad Autoscaler Enterprise supports additional
9292
`vertical_mem` and `vertical_cpu` queues.
9393

94+
- `-policy-source-disable-file`: Disable the sourcing of policies from disk.
95+
96+
- `-policy-source-disable-nomad`: Disable the sourcing of policies from the
97+
Nomad API.
98+
9499
- `-telemetry-disable-hostname`: Specifies whether gauge values should be prefixed
95100
with the local hostname.
96101

website/data/docs-nav-data.json

+4
Original file line numberDiff line numberDiff line change
@@ -1531,6 +1531,10 @@
15311531
"title": "policy_eval",
15321532
"path": "autoscaling/agent/policy_eval"
15331533
},
1534+
{
1535+
"title": "source",
1536+
"path": "autoscaling/agent/source"
1537+
},
15341538
{
15351539
"title": "strategy",
15361540
"path": "autoscaling/agent/strategy"

0 commit comments

Comments
 (0)