docs: recommendation for maximum number of template dependencies (#20259)

This commit is contained in:
Tim Gross
2024-04-04 11:08:49 -04:00
committed by GitHub
parent 9b5eb26c83
commit a71632e3a4

View File

@@ -332,6 +332,18 @@ task "task" {
}
```
### Dependencies
For templates that read from Vault, Consul, or Nomad, each item read is called a
"dependency". All the `template` blocks share the same internal runner which
de-duplicates dependencies requesting the same item. You should avoid having
large numbers of dependencies for a given task, as each dependency requires at
least one concurrent request (a possibly blocking query) to the upstream
server. If a task has more than 128 dependencies, a warn-level log will appear
in the Nomad client logs which reports "watching this many dependencies could
DDoS your servers", referring to the Vault, Consul, or Nomad cluster being
queried.
## Nomad Integration
### Nomad Services