@InterfaceAudience.LimitedPrivate(value="Tools") public class LoadBalancerPerformanceEvaluation extends org.apache.hadoop.hbase.util.AbstractHBaseTool
LoadBalancer
implementations. Example command: $ bin/hbase
org.apache.hadoop.hbase.master.balancer.LoadBalancerPerformanceEvaluation -regions 1000 -servers
100 -load_balancer org.apache.hadoop.hbase.master.balancer.SimpleLoadBalancerModifier and Type | Field and Description |
---|---|
private static String |
DEFAULT_LOAD_BALANCER |
private static int |
DEFAULT_NUM_REGIONS |
private static int |
DEFAULT_NUM_SERVERS |
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
LOAD_BALANCER_OPT |
private org.apache.hadoop.hbase.master.LoadBalancer |
loadBalancer |
private Class<?> |
loadBalancerClazz |
private String |
loadBalancerType |
private static org.slf4j.Logger |
LOG |
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_REGIONS_OPT |
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option |
NUM_SERVERS_OPT |
private int |
numRegions |
private int |
numServers |
private List<org.apache.hadoop.hbase.client.RegionInfo> |
regions |
private Map<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> |
regionServerMap |
private List<org.apache.hadoop.hbase.ServerName> |
servers |
private Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>>> |
tableServerRegionMap |
protected static HBaseCommonTestingUtility |
UTIL |
Constructor and Description |
---|
LoadBalancerPerformanceEvaluation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addOptions() |
protected int |
doWork() |
private String |
formatResults(String methodName,
long timeMillis) |
private void |
generateRegionsAndServers() |
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
private void |
setupConf() |
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
private static final org.slf4j.Logger LOG
protected static final HBaseCommonTestingUtility UTIL
private static final int DEFAULT_NUM_REGIONS
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_REGIONS_OPT
private static final int DEFAULT_NUM_SERVERS
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option NUM_SERVERS_OPT
private static final String DEFAULT_LOAD_BALANCER
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option LOAD_BALANCER_OPT
private int numRegions
private int numServers
private String loadBalancerType
private Class<?> loadBalancerClazz
private org.apache.hadoop.hbase.master.LoadBalancer loadBalancer
private Map<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> regionServerMap
private Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>>> tableServerRegionMap
public LoadBalancerPerformanceEvaluation()
private void setupConf()
private void generateRegionsAndServers()
protected void addOptions()
addOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
protected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
private String formatResults(String methodName, long timeMillis)
protected int doWork() throws Exception
doWork
in class org.apache.hadoop.hbase.util.AbstractHBaseTool
Exception
public static void main(String[] args) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.