GLGGAG commented on issue #15762:
URL: https://github.com/apache/dubbo/issues/15762#issuecomment-3551940871

   > > once the new nodes’ weights reach a certain threshold (say, 30+ or 
higher), the combination of “more new nodes” + “continuously increasing 
weights” will cause requests to be much more likely to hit the new nodes.
   > 
   > No, I don't think so. Because old nodes will increase their current weight 
faster than new nodes, so they will be selected more frequently than new nodes.
   
   The weight of the old nodes is fixed at 100 and never changes, so how could 
they “grow faster”?
   When an old node is selected, its current becomes a large negative value.
   It then needs to be increased by +100 on each round until it reaches a 
positive value before it has any chance of being selected again.
   
   For a new node, if it is selected, its current will also become a large 
negative value. However, on the next round, because the new node is still in 
the warm-up phase, its current will be reset to 0. In that next round, it will 
then add its current weight (say 70) on top of 0. Under this behavior, the 
probability that the new node is selected again is extremely high.


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