HBASE-6849 Make StochasticLoadBalancer the default
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1388267 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7571293ed5
commit
061fda6ae1
|
@ -455,7 +455,7 @@ public class RegionStates {
|
|||
Map<String, Map<ServerName, List<HRegionInfo>>> result =
|
||||
new HashMap<String, Map<ServerName,List<HRegionInfo>>>();
|
||||
synchronized (this) {
|
||||
if (!server.getConfiguration().getBoolean("hbase.master.loadbalance.bytable", true)) {
|
||||
if (!server.getConfiguration().getBoolean("hbase.master.loadbalance.bytable", false)) {
|
||||
Map<ServerName, List<HRegionInfo>> svrToRegions =
|
||||
new HashMap<ServerName, List<HRegionInfo>>(serverHoldings.size());
|
||||
for (Map.Entry<ServerName, Set<HRegionInfo>> e: serverHoldings.entrySet()) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public class LoadBalancerFactory {
|
|||
|
||||
// Create the balancer
|
||||
Class<? extends LoadBalancer> balancerKlass =
|
||||
conf.getClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS, DefaultLoadBalancer.class,
|
||||
conf.getClass(HConstants.HBASE_MASTER_LOADBALANCER_CLASS, StochasticLoadBalancer.class,
|
||||
LoadBalancer.class);
|
||||
return ReflectionUtils.newInstance(balancerKlass, conf);
|
||||
|
||||
|
|
Loading…
Reference in New Issue