Skip to content

Commit 4bed263

Browse files
gjkim42dims
authored andcommitted
Set containerd grpc.MaxCallRecvMsgSize to 16MB
1 parent d12963b commit 4bed263

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

container/containerd/client.go

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const (
5959
maxBackoffDelay = 3 * time.Second
6060
baseBackoffDelay = 100 * time.Millisecond
6161
connectionTimeout = 2 * time.Second
62+
maxMsgSize = 16 * 1024 * 1024 // 16MB
6263
)
6364

6465
// Client creates a containerd client
@@ -82,6 +83,7 @@ func Client(address, namespace string) (ContainerdClient, error) {
8283
grpc.WithContextDialer(dialer.ContextDialer),
8384
grpc.WithBlock(),
8485
grpc.WithConnectParams(connParams),
86+
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(maxMsgSize)),
8587
}
8688
unary, stream := newNSInterceptors(namespace)
8789
gopts = append(gopts,

0 commit comments

Comments
 (0)