You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2022/11/15 10:11:02 UTC

[GitHub] [druid] kfaraz commented on pull request #13367: Add `RoundRobinServerSelector` to speed up segment assignments

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: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org