Skip to content

Commit

Permalink
docs: expand explanation of consul-template wait config.
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekStrickland committed Jun 7, 2022
1 parent 519a5b3 commit 386ed5e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/content/docs/configuration/client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,11 @@ chroot as doing so would cause infinite recursion.
in less cluster load, but are more likely to have outdated data.

- `wait` `(map: { min = "5s" max = "4m" })` - Defines the minimum and maximum amount of time to wait
before attempting to re-render a template. This is useful to enable in systems where network connectivity
to Consul is degraded, because it will reduce the number of times a template is rendered. This
before attempting to re-render a template. By default, Consul Template will loop continually and re-render.
If this value is set, Nomad will configure Consul Template with a backoff timer that will tick on an interval
equal to the specified `min` value. The the loop will not re-render the template until the `max` value duration
has elapsed, or until the underlying data has changed. This is useful to enable in systems where network
connectivity to Consul is degraded, because it will reduce the number of times a template is rendered. This
configuration is also exposed in the _task template stanza_ to allow overrides per task.

```hcl
Expand Down

0 comments on commit 386ed5e

Please sign in to comment.