open-consul/agent/grpc-external
Luke Kysow 17594a123e
peering: retry establishing connection more quickly on certain errors (#13938)
When we receive a FailedPrecondition error, retry that more quickly
because we expect it will resolve shortly. This is particularly
important in the context of Consul servers behind a load balancer
because when establishing a connection we have to retry until we
randomly land on a leader node.

The default retry backoff goes from 2s, 4s, 8s, etc. which can result in
very long delays quite quickly. Instead, this backoff retries in 8ms
five times, then goes exponentially from there: 16ms, 32ms, ... up to a
max of 8152ms.
2022-07-29 13:04:32 -07:00
..
services peering: retry establishing connection more quickly on certain errors (#13938) 2022-07-29 13:04:32 -07:00
testutils grpc: rename public/private directories to external/internal (#13721) 2022-07-13 16:33:48 +01:00
forward.go grpc: rename public/private directories to external/internal (#13721) 2022-07-13 16:33:48 +01:00
server.go peerstream: set keepalive enforcement to 15s (#13796) 2022-07-18 16:12:03 -07:00
token.go grpc: rename public/private directories to external/internal (#13721) 2022-07-13 16:33:48 +01:00
utils.go grpc: rename public/private directories to external/internal (#13721) 2022-07-13 16:33:48 +01:00