mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: strategy Stanza - Nomad Autoscaler Agent Configuration
|
|
description: >-
|
|
The "strategy" block is used to configure scaling strategy plugins.
|
|
---
|
|
|
|
# `strategy` Block
|
|
|
|
<Placement groups={['strategy']} />
|
|
|
|
The `strategy` block is used to configure scaling strategy plugins.
|
|
|
|
```hcl
|
|
strategy "example-strategy-plugin" {
|
|
driver = "example-strategy-plugin"
|
|
args = ["-my-flag"]
|
|
|
|
config = {
|
|
algorithm = "complex"
|
|
}
|
|
}
|
|
```
|
|
|
|
### `strategy` Parameters
|
|
|
|
- `args` `(array<string>: [])` - Specifies a set of arguments to pass to the
|
|
plugin binary when it is executed.
|
|
|
|
- `driver` `(string: "")` - The plugin's executable name relative to to the
|
|
[`plugin_dir`][plugin_dir]. If the plugin has a suffix, such as .exe, this should be omitted.
|
|
|
|
- `config` `(map<string><string>: nil)` - Specifies configuration values for
|
|
the plugin either as HCL or JSON. The accepted values are plugin specific.
|
|
Please refer to the individual plugin's documentation.
|
|
|
|
[plugin_dir]: /docs/autoscaling/agent#plugin_dir
|