mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
40 lines
1019 B
Plaintext
40 lines
1019 B
Plaintext
---
|
|
layout: docs
|
|
page_title: policy_eval Stanza - Nomad Autoscaler Agent Configuration
|
|
description: >-
|
|
The "policy_eval" block holds the configuration related to the policy evaluation
|
|
process.
|
|
---
|
|
|
|
# `policy_eval` Block
|
|
|
|
<Placement groups={['policy_eval']} />
|
|
|
|
The `policy_eval` block holds the configuration related to the policy evaluation
|
|
process.
|
|
|
|
```hcl
|
|
policy_eval {
|
|
ack_timeout = "10m"
|
|
delivery_limit = 4
|
|
|
|
workers = {
|
|
cluster = 2
|
|
horizontal = 2
|
|
}
|
|
}
|
|
```
|
|
|
|
### `policy_eval` Parameters
|
|
|
|
- `ack_timeout` `(string: "5m")` - The time limit that an eval must be ACK'd
|
|
before being considered NACK'd.
|
|
|
|
- `delivery_limit` `(int: 1)` - The maximum number of times a policy evaluation
|
|
can be dequeued from the broker.
|
|
|
|
- `workers` `(map<string|int>: [cluster:10,horizontal:10])` - The number of workers
|
|
to initialize for each queue. Nomad Autoscaler supports `cluster` and `horizontal`
|
|
map keys. Nomad Autoscaler Enterprise supports additional `vertical_mem` and
|
|
`vertical_cpu` entries.
|