Package org.apache.hadoop.hbase
Class IntegrationTestRegionReplicaPerf
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.IntegrationTestBase
org.apache.hadoop.hbase.IntegrationTestRegionReplicaPerf
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
Test for comparing the performance impact of region replicas. Uses components of
PerformanceEvaluation
. Does not run from IntegrationTestsDriver
because
IntegrationTestBase is incompatible with the JUnit runner. Hence no @Test annotations either. See
-help
for full list of options.-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
Wraps the invocation ofPerformanceEvaluation
in aCallable
.private static enum
Extract a descriptive statistic from aHistogram
.(package private) static class
Record the results from a singlePerformanceEvaluation
job run.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
static final String
private static final org.slf4j.Logger
private static final String
private static final String
private static final String
private static final String
private int
private static final String
private static final String
private int
private static final String
private static final String
private long
private static final String
private static final String
private org.apache.hadoop.hbase.TableName
Fields inherited from class org.apache.hadoop.hbase.IntegrationTestBase
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util
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
private static double
calcMean
(String desc, IntegrationTestRegionReplicaPerf.Stat stat, List<IntegrationTestRegionReplicaPerf.TimingResult> results) Compute the mean of the givenstat
from a timing results.Provides the name of the CFs that are protected from random Chaos monkey activity (alter)org.apache.hadoop.hbase.TableName
Provides the name of the table that is protected from random Chaos monkey activitystatic void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) int
void
setUp()
void
void
void
test()
Methods inherited from class org.apache.hadoop.hbase.IntegrationTestBase
cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, startMonkey
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsInt, getOptionAsLong, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConf
-
Field Details
-
LOG
-
SLEEP_TIME_KEY
- See Also:
-
SLEEP_TIME_DEFAULT
- See Also:
-
TABLE_NAME_KEY
- See Also:
-
TABLE_NAME_DEFAULT
- See Also:
-
REPLICA_COUNT_KEY
- See Also:
-
REPLICA_COUNT_DEFAULT
- See Also:
-
PRIMARY_TIMEOUT_KEY
- See Also:
-
PRIMARY_TIMEOUT_DEFAULT
- See Also:
-
NUM_RS_KEY
- See Also:
-
NUM_RS_DEFAULT
- See Also:
-
FAMILY_NAME
- See Also:
-
tableName
-
sleepTime
-
replicaCount
-
-
clusterSize
-
-
Constructor Details
-
IntegrationTestRegionReplicaPerf
public IntegrationTestRegionReplicaPerf()
-
-
Method Details
-
setUp
- Overrides:
setUp
in classIntegrationTestBase
- Throws:
Exception
-
setUpCluster
- Specified by:
setUpCluster
in classIntegrationTestBase
- Throws:
Exception
-
setUpMonkey
- Overrides:
setUpMonkey
in classIntegrationTestBase
- Throws:
Exception
-
addOptions
- Overrides:
addOptions
in classIntegrationTestBase
-
processOptions
- Overrides:
processOptions
in classIntegrationTestBase
-
runTestFromCommandLine
- Specified by:
runTestFromCommandLine
in classIntegrationTestBase
- Throws:
Exception
-
getTablename
Description copied from class:IntegrationTestBase
Provides the name of the table that is protected from random Chaos monkey activity- Specified by:
getTablename
in classIntegrationTestBase
- Returns:
- table to not delete.
-
getColumnFamilies
Description copied from class:IntegrationTestBase
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)- Specified by:
getColumnFamilies
in classIntegrationTestBase
- Returns:
- set of cf names to protect.
-
calcMean
private static double calcMean(String desc, IntegrationTestRegionReplicaPerf.Stat stat, List<IntegrationTestRegionReplicaPerf.TimingResult> results) Compute the mean of the givenstat
from a timing results. -
test
- Throws:
Exception
-
main
- Throws:
Exception
-