kfaraz commented on PR #13367:
URL: https://github.com/apache/druid/pull/13367#issuecomment-1315085519

   @rohangarg , `RandomBalancerStrategy` might not help get a tier with 
uniform-ish distribution (atleast in terms of number of segments).
   
   This is because even within a tier, the list of eligible servers given as 
input to the `RandomBalancerStrategy` would be different in every call. The 
list of eligible servers for a segment depends on whether the segment is being 
served or loaded by a server or not. Thus the random integer might not give a 
uniform distribution since the output integer range, as well as the server at 
each index changes in each call. It might be even more non-uniform with 
multiple datasources having different number of replicas in a tier.
   
   I have not validated this behaviour though, it might be interesting to see 
if we get a similar behaviour with random strategy as we would with 
round-robin. Let me know what you think.


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