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 2018/10/31 06:08:55 UTC
[GitHub] clintropolis commented on issue #6503: Add rebalance strategy for
RandomBalancerStrategy
clintropolis commented on issue #6503: Add rebalance strategy for RandomBalancerStrategy
URL: https://github.com/apache/incubator-druid/pull/6503#issuecomment-434572435
Hmm, I think at least `CachedCostBalancerStrategy` should be able to handle that many segments and many more, however it I know it is possible to make this not true via coordinator configuration. I would be interested in how your coordinator is tuned in the case where it is causing stuck handoff, like what are settings for max segments to move, etc? Additional cluster details such as number of historical nodes, type of deep storage, type of segment loading, etc, would be interesting as well if you're willing to share.
Using the `CostBalancerStrategy` or some variant of it should provide for much higher query performance because it takes into account segment sizes, datasources, intervals and space on historical servers and tries to maximize query fan out opportunity at an datasource/interval local scale. This is definitely expensive to compute, and it is i think biased, in large clusters at least, towards having smallish values of max segments to move in order to slowly converge the cluster to a balanced and reasonably query optimized state, but should minimize the amount of queries that get bottlenecked because of segments not being adequately spread out across the cluster.
That said, if for some reason `CachingCostBalancerStrategy` doesn't fit your use case, I don't think these changes are quite appropriate to add to `RandomBalancerStrategy`. I believe these changes make it behave much less randomly as it would now balance on storage capacity usage, as far as I understand this PR. Rather, I think it would be more sensible to add a new balancer strategy that implements this functionality instead, maybe call it `DiskThresholdBalancerStrategy`. However, I think on the query side balancing like this is not going to be a great experience in terms of query speed, since nothing will prevent or actively try to avoid load being concentrated in hot spots.
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org