mirror of https://github.com/hashicorp/consul
Tune streaming backoff on errors to retry a bit faster when TCP connections drop
parent
44718456b5
commit
5529cb7347
|
@ -113,9 +113,13 @@ func newMaterializer(
|
||||||
Logger: deps.Logger,
|
Logger: deps.Logger,
|
||||||
Waiter: &retry.Waiter{
|
Waiter: &retry.Waiter{
|
||||||
MinFailures: 1,
|
MinFailures: 1,
|
||||||
MinWait: 0,
|
// Start backing off with small increments (200-400ms) which will double
|
||||||
MaxWait: 60 * time.Second,
|
// each attempt. (200-400, 400-800, 800-1600, 1600-3200, 3200-6000, 6000
|
||||||
Jitter: retry.NewJitter(100),
|
// after that). (retry.Wait applies Max limit after jitter right now).
|
||||||
|
Factor: 200 * time.Millisecond,
|
||||||
|
MinWait: 0,
|
||||||
|
MaxWait: 60 * time.Second,
|
||||||
|
Jitter: retry.NewJitter(100),
|
||||||
},
|
},
|
||||||
Request: newRequestFn,
|
Request: newRequestFn,
|
||||||
}), nil
|
}), nil
|
||||||
|
|
Loading…
Reference in New Issue