one0320heart commented on issue #986: URL: https://github.com/apache/incubator-brpc/issues/986#issuecomment-618903641
每个地址可以附带一个tag,在常见的命名服务中,如果地址后有空格,则空格之后的内容均为tag。 相同的地址配合不同的tag被认为是不同的实例,brpc会建立不同的连接。用户可利用这个特性更灵活地控制与单个地址的连接方式。 如果你需要"带权重的轮询",你应当优先考虑使用wrr算法,而不是用tag来模拟。 --------------------------------------------------------------- 我理解你这个ip:port+空格 后面的这个数字,我理解应该是tag,而不是你理解的权重 但是如何配置wrr,貌似文档中也没有给出来 ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
