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:
Michael Stack 2012-09-20 23:22:20 +00:00
parent 7571293ed5
commit 061fda6ae1
2 changed files with 2 additions and 2 deletions

View File

@ -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()) {

View File

@ -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);