diff --git a/cmd/frostfs-node/grpc.go b/cmd/frostfs-node/grpc.go index b62ae9c4..1dd0f072 100644 --- a/cmd/frostfs-node/grpc.go +++ b/cmd/frostfs-node/grpc.go @@ -17,11 +17,13 @@ import ( "google.golang.org/grpc/credentials" ) +const maxRecvMsgSize = 256 << 20 + func initGRPC(c *cfg) { var successCount int grpcconfig.IterateEndpoints(c.appCfg, func(sc *grpcconfig.Config) { serverOpts := []grpc.ServerOption{ - grpc.MaxSendMsgSize(maxMsgSize), + grpc.MaxRecvMsgSize(maxRecvMsgSize), grpc.ChainUnaryInterceptor( metrics.NewUnaryServerInterceptor(), tracing.NewUnaryServerInterceptor(),