Skip to content

Commit 36a29fe

Browse files
committed
Add multiplier for the dialer
Originally multipilier is default to 0, which will cause flodding if backoff happens. Now setting multiplier to 1.6 which is the default multiplier value in grpc. Signed-off-by: Hanlin Shi <[email protected]>
1 parent 0d3dfd7 commit 36a29fe

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

container/containerd/client.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,10 @@ func Client(address, namespace string) (ContainerdClient, error) {
6565
tryConn.Close()
6666

6767
connParams := grpc.ConnectParams{
68-
Backoff: backoff.Config{
69-
BaseDelay: baseBackoffDelay,
70-
MaxDelay: maxBackoffDelay,
71-
},
68+
Backoff: backoff.DefaultConfig,
7269
}
70+
connParams.Backoff.BaseDelay = baseBackoffDelay
71+
connParams.Backoff.MaxDelay = maxBackoffDelay
7372
gopts := []grpc.DialOption{
7473
grpc.WithInsecure(),
7574
grpc.WithContextDialer(dialer.ContextDialer),

0 commit comments

Comments
 (0)