Class LoadBalancerPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.master.balancer.LoadBalancerPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
@LimitedPrivate("Tools")
public class LoadBalancerPerformanceEvaluation
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Tool to test performance of different
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.SimpleLoadBalancer-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final String
private static final int
private static final int
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private org.apache.hadoop.hbase.master.LoadBalancer
private Class<?>
private String
private static final org.slf4j.Logger
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private static org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private int
private int
private List<org.apache.hadoop.hbase.client.RegionInfo>
private Map<org.apache.hadoop.hbase.client.RegionInfo,
org.apache.hadoop.hbase.ServerName> private List<org.apache.hadoop.hbase.ServerName>
private Map<org.apache.hadoop.hbase.TableName,
Map<org.apache.hadoop.hbase.ServerName, List<org.apache.hadoop.hbase.client.RegionInfo>>> protected static final HBaseCommonTestingUtility
Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected int
doWork()
private String
formatResults
(String methodName, long timeMillis) private void
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) private void
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
LOG
-
UTIL
-
DEFAULT_NUM_REGIONS
- See Also:
-
NUM_REGIONS_OPT
-
DEFAULT_NUM_SERVERS
- See Also:
-
NUM_SERVERS_OPT
-
DEFAULT_LOAD_BALANCER
- See Also:
-
LOAD_BALANCER_OPT
-
numRegions
-
numServers
-
loadBalancerType
-
loadBalancerClazz
-
loadBalancer
-
servers
-
regions
-
regionServerMap
private Map<org.apache.hadoop.hbase.client.RegionInfo,org.apache.hadoop.hbase.ServerName> regionServerMap -
tableServerRegionMap
private Map<org.apache.hadoop.hbase.TableName,Map<org.apache.hadoop.hbase.ServerName, tableServerRegionMapList<org.apache.hadoop.hbase.client.RegionInfo>>>
-
-
Constructor Details
-
LoadBalancerPerformanceEvaluation
public LoadBalancerPerformanceEvaluation()
-
-
Method Details
-
setupConf
-
generateRegionsAndServers
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
formatResults
-
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-
main
- Throws:
IOException
-