Skip to content

Commit

Permalink
docs: recommendation for maximum number of template dependencies (#20259
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tgross authored and philrenaud committed Apr 18, 2024
1 parent b04491a commit 5a515ac
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions website/content/docs/job-specification/template.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5a515ac

Please sign in to comment.