Skip to content

【2.5.1】gRPC message exceeds maximum size #13273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kangzhaok opened this issue Apr 21, 2025 · 7 comments
Open

【2.5.1】gRPC message exceeds maximum size #13273

kangzhaok opened this issue Apr 21, 2025 · 7 comments
Labels
kind/question Category issues related to questions or problems

Comments

@kangzhaok
Copy link
Contributor

参考了之前的issues,将nacos.remote.service.grpc.sdk.max-inbound-message-size和nacos.remote.service.grpc.cluster.max-inbound-message-size都调整到了20971520还是会报错

报错如下gRPC message exceeds maximum size 10485760 : 13704618
是参数不生效吗?我本地debug看那拿到的参数是设置后的

@kangzhaok
Copy link
Contributor Author

2.5.1版本

@kangzhaok kangzhaok changed the title 【2.5.2】gRPC message exceeds maximum size 【2.5.1】gRPC message exceeds maximum size Apr 21, 2025
@KomachiSion
Copy link
Collaborator

客户端服务端都需要设置

@KomachiSion
Copy link
Collaborator

如果是数据同步时遇到此问题,需要集群中所有节点均设置之后才会生效

@KomachiSion KomachiSion added the kind/question Category issues related to questions or problems label Apr 21, 2025
@kangzhaok
Copy link
Contributor Author

@KomachiSion 我是集群间同步报错的,DistroDataRequest 集群里面所有机器都加了那两个配置逐台重启后还是会报错。

@kangzhaok
Copy link
Contributor Author

kangzhaok commented Apr 21, 2025

@KomachiSion 集群间同步ClusterRpcClientProxy.buldRpcClient方法中构建RpcClient的时候通过RpcClientFactory.createClusterClient创建这里面并没有用到那两个参数,这里是不是有点问题
ClusterRpcClientProxy.buldRpcClient是不是可以先用DefaultGrpcClientConfig.newBuider().setLabels(labels).buildClusterFromProperties(properties).setThreadPoolCoreSize().setThreadPoolMaxSize().build();
然后用RpcClientFactory.createClusterClient(memberClientKey, type, clientConfig)构建呢

@kangzhaok
Copy link
Contributor Author

@KomachiSion GrpcClusterServer中才用到了那两个参数

@kangzhaok
Copy link
Contributor Author

@KomachiSion 集群间同步ClusterRpcClientProxy.buldRpcClient方法中构建RpcClient的时候通过RpcClientFactory.createClusterClient创建这里面并没有用到那两个参数,这里是不是有点问题 ClusterRpcClientProxy.buldRpcClient是不是可以先用DefaultGrpcClientConfig.newBuider().setLabels(labels).buildClusterFromProperties(properties).setThreadPoolCoreSize().setThreadPoolMaxSize().build(); 然后用RpcClientFactory.createClusterClient(memberClientKey, type, clientConfig)构建呢

如果用这种方式服务端也需要配置nacos.remote.client.grpc.maxinbound.message.size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Category issues related to questions or problems
Projects
None yet
Development

No branches or pull requests

2 participants