-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Nacos客户端和服务端在自定义grpc端口偏移上存在设计不一致 #12935
Comments
|
BTW,客户端访问时,配置的应该是nacos-server被暴露出来的端口,而不是nacos-server容器内所监听端口。 |
server不应该随意修改偏移量的值, 建议通过vip、slb等网络组建,屏蔽后端引擎实际的端口,并仅暴露客户端访问端口。 client通过offset偏移量+ 配置main端口配置, 任意适配vip、slb等网络的端口转发映射。 |
所以建议在文档及专家问答中明确服务端与客户端配置存在不一致性,明确说明服务端不支持通过 |
欢迎贡献文档内容 |
过程:
nacos.server.grpc.port.offset
变量。nacos.server.grpc.port.offset
在源码中搜索未发现问题。rpcPortOffset
在源码中搜索发现服务端GrpcClusterServer
、GrpcSdkServer
使用常量返回。问题:
建议(二选一):
nacos.server.grpc.port.offset
出现的地方标明服务端不支持此变量,而不是模糊的说会根据预设的偏移量自动计算
或确保服务端通过VIP/SLB等网络设备暴露,并正确配置了TCP层的端口映射规则以适应客户端的端口变更
。nacos.server.grpc.port.offset
变量,与客户端保持一致。The text was updated successfully, but these errors were encountered: