mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
Enlarge Proxy node max size of reveivable grpc message
Signed-off-by: BossZou <yinghao.zou@zilliz.com>
This commit is contained in:
parent
3489362137
commit
1efcf605e2
@ -30,6 +30,10 @@ import (
|
||||
"github.com/zilliztech/milvus-distributed/internal/util/funcutil"
|
||||
)
|
||||
|
||||
const (
|
||||
GRPCMaxMagSize = 2 << 30
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
ctx context.Context
|
||||
wg sync.WaitGroup
|
||||
@ -82,7 +86,8 @@ func (s *Server) startGrpcLoop(grpcPort int) {
|
||||
s.grpcServer = grpc.NewServer(grpc.UnaryInterceptor(
|
||||
otgrpc.OpenTracingServerInterceptor(tracer)),
|
||||
grpc.StreamInterceptor(
|
||||
otgrpc.OpenTracingStreamServerInterceptor(tracer)))
|
||||
otgrpc.OpenTracingStreamServerInterceptor(tracer)),
|
||||
grpc.MaxRecvMsgSize(GRPCMaxMagSize))
|
||||
proxypb.RegisterProxyNodeServiceServer(s.grpcServer, s)
|
||||
milvuspb.RegisterMilvusServiceServer(s.grpcServer, s)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user