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.Set;
|
||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
import java.util.concurrent.ConcurrentMap;
|
import java.util.concurrent.ConcurrentMap;
|
||||||
import java.util.concurrent.Executors;
|
|
||||||
import java.util.concurrent.ScheduledExecutorService;
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
|
@ -701,8 +700,10 @@ public class DruidCoordinator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
balancerExec = MoreExecutors.listeningDecorator(
|
balancerExec = MoreExecutors.listeningDecorator(Execs.multiThreaded(
|
||||||
Executors.newFixedThreadPool(getDynamicConfigs().getBalancerComputeThreads()));
|
getDynamicConfigs().getBalancerComputeThreads(),
|
||||||
|
"coordinator-cost-balancer-%s"
|
||||||
|
));
|
||||||
BalancerStrategy balancerStrategy = factory.createBalancerStrategy(balancerExec);
|
BalancerStrategy balancerStrategy = factory.createBalancerStrategy(balancerExec);
|
||||||
|
|
||||||
// Do coordinator stuff.
|
// Do coordinator stuff.
|
||||||
|
|
Loading…
Reference in New Issue