mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 14:24:39 +00:00
parent
579addc1c7
commit
7e52e95c47
@ -45,7 +45,10 @@ to wait for any changes subsequent to that index.
|
|||||||
In addition to `index`, endpoints that support blocking will also honor a `wait`
|
In addition to `index`, endpoints that support blocking will also honor a `wait`
|
||||||
parameter specifying a maximum duration for the blocking request. This is limited to
|
parameter specifying a maximum duration for the blocking request. This is limited to
|
||||||
10 minutes. If not set, the wait time defaults to 5 minutes. This value can be specified
|
10 minutes. If not set, the wait time defaults to 5 minutes. This value can be specified
|
||||||
in the form of "10s" or "5m" (i.e., 10 seconds or 5 minutes, respectively).
|
in the form of "10s" or "5m" (i.e., 10 seconds or 5 minutes, respectively). A small random
|
||||||
|
amount of additional wait time is added to the supplied maximum `wait` time to spread out
|
||||||
|
the wake up time of any concurrent requests. This adds up to `wait / 16` additional time
|
||||||
|
to the maximum duration.
|
||||||
|
|
||||||
A critical note is that the return of a blocking request is **no guarantee** of a change. It
|
A critical note is that the return of a blocking request is **no guarantee** of a change. It
|
||||||
is possible that the timeout was reached or that there was an idempotent write that does
|
is possible that the timeout was reached or that there was an idempotent write that does
|
||||||
|
Loading…
x
Reference in New Issue
Block a user