ZhihaoPan commented on issue #1827: URL: https://github.com/apache/incubator-brpc/issues/1827#issuecomment-1174823172
> 感觉和ns关系不大,我看每次如果有remain_server.id != server_list[pos].id 就会把remain_server.weight置0,那这时候就相当于从某个position的0位置开始按stride走,这时候的概率就不是权重的概率了吧。 我们服务权重变更很频繁,下游假设只有3个节点 权重为(110, 93, 87) stride为107,某一时刻权重微调,server_list顺序变了,那么按照现在逻辑remain_server.weight置0,都从pos的起始点走,那走到110上的概率接近2/3了吧。 我们上游节点有一百个,这种抖动现象就很明显 -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
