elloooooo opened a new pull request #6503: Add rebalance strategy for RandomBalancerStrategy URL: https://github.com/apache/incubator-druid/pull/6503 Now when users use the `RandomBalancerStrategy` at Coordinator, there is no implementation to rebalance the segments which alreay exist on the Historical server. For example, if a new historical node is add to a druid cluster which already has much data on historical nodes, the used percentage of new historical node willl be much less the avg used percentage of the whole cluster for a long time. So I add an implementation for `RandomBalancerStrategy` to rebalance the data. The basic idea is compare the used percentage of every historical node with avg used percentage of whole cluster. When the difference is more than a threshold which can be configured as a dynamic configuration and the server is not serving the target segment, then the server will be one of the candidates to move the segment to. At last pick one server from the candidates randomly and move the segment to it. The threshold is default 5% and must bigger than 1%.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
