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
Nested ClassesModifier and TypeClassDescription(package private) static classWraps the invocation ofPerformanceEvaluationin aCallable.private static enumExtract a descriptive statistic from aHistogram.(package private) static classRecord the results from a singlePerformanceEvaluationjob run.Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final Stringprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate intprivate static final Stringprivate static final Stringprivate intprivate static final Stringprivate static final Stringprivate longprivate static final Stringprivate static final Stringprivate org.apache.hadoop.hbase.TableNameFields inherited from class org.apache.hadoop.hbase.IntegrationTestBase
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, utilFields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS, LONG_HELP_OPTION, options, SHORT_HELP_OPTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate static doublecalcMean(String desc, IntegrationTestRegionReplicaPerf.Stat stat, List<IntegrationTestRegionReplicaPerf.TimingResult> results) Compute the mean of the givenstatfrom a timing results.Provides the name of the CFs that are protected from random Chaos monkey activity (alter)org.apache.hadoop.hbase.TableNameProvides the name of the table that is protected from random Chaos monkey activitystatic voidprotected voidprocessOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) intvoidsetUp()voidvoidvoidtest()Methods inherited from class org.apache.hadoop.hbase.IntegrationTestBase
cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, startMonkeyMethods 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:
setUpin classIntegrationTestBase- Throws:
Exception
-
setUpCluster
- Specified by:
setUpClusterin classIntegrationTestBase- Throws:
Exception
-
setUpMonkey
- Overrides:
setUpMonkeyin classIntegrationTestBase- Throws:
Exception
-
addOptions
- Overrides:
addOptionsin classIntegrationTestBase
-
processOptions
- Overrides:
processOptionsin classIntegrationTestBase
-
runTestFromCommandLine
- Specified by:
runTestFromCommandLinein classIntegrationTestBase- Throws:
Exception
-
getTablename
Description copied from class:IntegrationTestBaseProvides the name of the table that is protected from random Chaos monkey activity- Specified by:
getTablenamein classIntegrationTestBase- Returns:
- table to not delete.
-
getColumnFamilies
Description copied from class:IntegrationTestBaseProvides the name of the CFs that are protected from random Chaos monkey activity (alter)- Specified by:
getColumnFamiliesin 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 givenstatfrom a timing results. -
test
- Throws:
Exception
-
main
- Throws:
Exception
-