使用higress代理访问nacos3.0的服务时,无法实现负载均衡能力,每次代理访问固定请求其中一台在nacos配置的mcp服务器? || When using the higress proxy to access the service of Nacos3.0, load balancing cannot be achieved. Each time the proxy accesses a fixed request to one of the mcp servers configured in Nacos? #2800
Replies: 3 comments 1 reply
-
请 @Erica177 看一下这个问题 Please @Erica177 Check out this question |
Beta Was this translation helpful? Give feedback.
-
服务列表里的端口是服务的端口,不是实例的端口。你的实例都是一个 IP,不排除这里有显示问题。你可以进入 gateway 容器,执行以下命令看一下对应服务集群里的示例信息: The port in the service list is the port of the service, not the port of the instance. Your instances are all IPs, and there is no display problem here. You can enter the gateway container and execute the following command to see the example information in the corresponding service cluster: |
Beta Was this translation helpful? Give feedback.
-
是不是因为测试环境我的2个实例都是一个IP,所以负载均衡策略只认一个?如果正式环境2个实例IP的话就没有问题? Is it because my two instances in the test environment are both an IP, so I only recognize one load balancing strategy? If there are two instance IPs in the formal environment, there is no problem? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
根据官方文档https://nacos.io/blog/nacos-gvr7dx_awbbpb_lup4w7e1cv6wktac/?spm=5238cd80.6b0ea493.0.0.7d61313eFZqHaZ&source=blog


我在nacos上注册了一个Mcp服务,并且起了2个实例(8081和8082端口)
然后根据文档说明通过higress添加nacos3.x服务来源,并且在higress服务列表中成功自动注册了nacos中配置的mcp服务,不过只看到其中一个实例的端口号(8081)
然后通过MCP inspector调用higress网关代理的接口后,虽然可以成功请求到nacos配置的MCP服务工具,但是始终只会访问其中一台实例,并没有实现负载均衡能力
请求是什么问题?
According to the official document https://nacos.io/blog/nacos-gvr7dx_awbbpb_lup4w7e1cv6wktac/?spm=5238cd80.6b0ea493.0.0.7d61313eFZqHaZ&source=blog


I registered a Mcp service on Nacos and found 2 instances (ports 8081 and 8082)
Then, according to the documentation instructions, the source of the Nacos3.x service is added through higress, and the mcp service configured in nacos was successfully automatically registered in the higress service list, but only the port number of one of the instances is seen (8081)
Then after calling the interface of the Higress gateway proxy through the MCP inspector, although the MCP service tool configured by Nacos can be successfully requested, it will always access only one of the instances and does not achieve load balancing capabilities.
What is the problem with the request?
Beta Was this translation helpful? Give feedback.
All reactions