mirror of https://github.com/apache/druid.git
Make the Coordinator Cost Balancer thread naming human friendly (#4354)
This commit is contained in:
parent
fd55c894ce
commit
ada498cbf3
|
@ -88,7 +88,6 @@ import java.util.Map;
|
|||
import java.util.Set;
|
||||
import java.util.concurrent.Callable;
|
||||
import java.util.concurrent.ConcurrentMap;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
|
@ -701,8 +700,10 @@ public class DruidCoordinator
|
|||
}
|
||||
}
|
||||
|
||||
balancerExec = MoreExecutors.listeningDecorator(
|
||||
Executors.newFixedThreadPool(getDynamicConfigs().getBalancerComputeThreads()));
|
||||
balancerExec = MoreExecutors.listeningDecorator(Execs.multiThreaded(
|
||||
getDynamicConfigs().getBalancerComputeThreads(),
|
||||
"coordinator-cost-balancer-%s"
|
||||
));
|
||||
BalancerStrategy balancerStrategy = factory.createBalancerStrategy(balancerExec);
|
||||
|
||||
// Do coordinator stuff.
|
||||
|
|
Loading…
Reference in New Issue