Phixsura commented on issue #2541:
URL: https://github.com/apache/dubbo-go/issues/2541#issuecomment-1972556432

   在代码中,如果 ww 小于 1,则将服务实例的权重设置为 1;如果 ww 大于等于 1 且小于等于 weight,则将服务实例的权重设置为 ww 
的整数部分。这里可以理解uptime是一个动值,而warmup和weight则是定值,呈线性增长,当uptime大于等于预热时间warmup,停止增长。
   
https://github.com/apache/dubbo/blob/8fb22934d1c89cfb07e3566a138a3a5962055ebb/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/AbstractLoadBalance.java#L75-L100
   
https://github.com/apache/dubbo/blob/8fb22934d1c89cfb07e3566a138a3a5962055ebb/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/loadbalance/AbstractLoadBalance.java#L49-L52
   和Java本质上没任何区别,数学逻辑是一致的


-- 
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]

Reply via email to