metamx/druid — pull request #399 by himadrisingh001 (2014-02-13 13:37:36+00:00)
Title: Multithread costbalancer

Cost Balancer Strategy needs to iterate through all the segments/partitions on all the servers to compute cost of each segments to be loaded.
Multi-thread Cost-calculator for CostBalancerStrategy. Instead of iterating over all 80 computes, with ~2K segments each in a single thread, we can calculate the cost using thread pool.

Its configurable, if doesn't works as expected we can switch back to old single-threaded cost balancer strategy.