You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Gucvii (via GitHub)" <gi...@apache.org> on 2025/05/09 14:54:59 UTC
[I] dubbo-go loadbalance don't work [dubbo-go]
Gucvii opened a new issue, #2864:
URL: https://github.com/apache/dubbo-go/issues/2864
### Environment
- Server: Dubbo-go, v3.3.0
- Client: Dubbo-go, v3.3.0
- Protocol: Triple
- Registry: Nacos, unknown
### Issue description
dubbo-go loadbalance don't work
关键代码如下:
Server1:
<img width="660" alt="Image" src="https://github.com/user-attachments/assets/0efda327-3a6c-49da-8107-27b1c9e07b1e" />
Server2:
两个Server有不同的端口
Client:
<img width="624" alt="Image" src="https://github.com/user-attachments/assets/c22606f4-5d2d-43c8-adb1-b7a85728a4d2" />
Result:
<img width="862" alt="Image" src="https://github.com/user-attachments/assets/c6e0f361-0e40-42da-88bf-65c101648fcc" />
可以看到,概率不尽人意,打断点后发现:
<img width="601" alt="Image" src="https://github.com/user-attachments/assets/43023692-24d4-4e97-bcff-8991ee057cf0" />
所有概率相等,为 100 ,经查,100 是程序设定的默认权重
可见:dubbo-go的loadbalance不生效,此外 server 能设置 loadbalance 这个逻辑不是很理解(文档里面只有client loadbalance,上文有设置,也无效)
初步调查是配置的问题,消费者从注册中心拿到生产者的url里面没有相关参数,初步考虑pr应该是吧url相关参数补充上去,并添加该 loadbalance 集成测试。上上策应该是好好处理一下统一配置这一块,传递链太长了,各种赋值,最好有个统一的开发文档,这样不会有各种各样相同功能的不同变量。此外,尽可能不要拼接url字符串,尽可能使用常量,这样可以避免改名字的时候不一致。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] dubbo-go loadbalance don't work [dubbo-go]
Posted by "wqyenjoy (via GitHub)" <gi...@apache.org>.
wqyenjoy commented on issue #2864:
URL: https://github.com/apache/dubbo-go/issues/2864#issuecomment-2973755996
我来看看
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] dubbo-go loadbalance don't work [dubbo-go]
Posted by "marsevilspirit (via GitHub)" <gi...@apache.org>.
marsevilspirit commented on issue #2864:
URL: https://github.com/apache/dubbo-go/issues/2864#issuecomment-2954039035
qingyuge
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] dubbo-go loadbalance don't work [dubbo-go]
Posted by "marsevilspirit (via GitHub)" <gi...@apache.org>.
marsevilspirit closed issue #2864: dubbo-go loadbalance don't work
URL: https://github.com/apache/dubbo-go/issues/2864
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org