public class IntegrationTestRegionReplicaPerf extends IntegrationTestBase
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.| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
IntegrationTestRegionReplicaPerf.PerfEvalCallable
Wraps the invocation of
PerformanceEvaluation in a Callable. |
private static class |
IntegrationTestRegionReplicaPerf.Stat
Extract a descriptive statistic from a
Histogram. |
(package private) static class |
IntegrationTestRegionReplicaPerf.TimingResult
Record the results from a single
PerformanceEvaluation job run. |
| Modifier and Type | Field and Description |
|---|---|
private int |
clusterSize |
static String |
FAMILY_NAME |
private static org.slf4j.Logger |
LOG |
private static String |
NUM_RS_DEFAULT |
private static String |
NUM_RS_KEY |
private static String |
PRIMARY_TIMEOUT_DEFAULT |
private static String |
PRIMARY_TIMEOUT_KEY |
private int |
primaryTimeout |
private static String |
REPLICA_COUNT_DEFAULT |
private static String |
REPLICA_COUNT_KEY |
private int |
replicaCount |
private static String |
SLEEP_TIME_DEFAULT |
private static String |
SLEEP_TIME_KEY |
private long |
sleepTime |
private static String |
TABLE_NAME_DEFAULT |
private static String |
TABLE_NAME_KEY |
private org.apache.hadoop.hbase.TableName |
tableName |
CHAOS_MONKEY_PROPS, monkey, MONKEY_LONG_OPT, monkeyProps, monkeyToUse, NO_CLUSTER_CLEANUP_LONG_OPT, noClusterCleanUp, util| Constructor and Description |
|---|
IntegrationTestRegionReplicaPerf() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOptions() |
private static double |
calcMean(String desc,
IntegrationTestRegionReplicaPerf.Stat stat,
List<IntegrationTestRegionReplicaPerf.TimingResult> results)
Compute the mean of the given
stat from a timing results. |
protected Set<String> |
getColumnFamilies()
Provides the name of the CFs that are protected from random Chaos monkey activity (alter)
|
org.apache.hadoop.hbase.TableName |
getTablename()
Provides the name of the table that is protected from random Chaos monkey activity
|
static void |
main(String[] args) |
protected void |
processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) |
int |
runTestFromCommandLine() |
void |
setUp() |
void |
setUpCluster() |
void |
setUpMonkey() |
void |
test() |
cleanUp, cleanUpCluster, cleanUpMonkey, cleanUpMonkey, doWork, getConf, getDefaultMonkeyFactory, getTestingUtil, loadMonkeyProperties, processBaseOptions, startMonkeyaddOption, addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOption, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getOptionAsDouble, getOptionAsInt, getOptionAsLong, newParser, parseArgs, parseInt, parseLong, printUsage, printUsage, processOldArgs, run, setConfprivate static final org.slf4j.Logger LOG
private static final String SLEEP_TIME_KEY
private static final String SLEEP_TIME_DEFAULT
private static final String TABLE_NAME_KEY
private static final String TABLE_NAME_DEFAULT
private static final String REPLICA_COUNT_KEY
private static final String REPLICA_COUNT_DEFAULT
private static final String PRIMARY_TIMEOUT_KEY
private static final String PRIMARY_TIMEOUT_DEFAULT
private static final String NUM_RS_KEY
private static final String NUM_RS_DEFAULT
public static final String FAMILY_NAME
private org.apache.hadoop.hbase.TableName tableName
private long sleepTime
private int replicaCount
private int primaryTimeout
private int clusterSize
public IntegrationTestRegionReplicaPerf()
public void setUp() throws Exception
setUp in class IntegrationTestBaseExceptionpublic void setUpCluster() throws Exception
setUpCluster in class IntegrationTestBaseExceptionpublic void setUpMonkey() throws Exception
setUpMonkey in class IntegrationTestBaseExceptionprotected void addOptions()
addOptions in class IntegrationTestBaseprotected void processOptions(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd)
processOptions in class IntegrationTestBasepublic int runTestFromCommandLine() throws Exception
runTestFromCommandLine in class IntegrationTestBaseExceptionpublic org.apache.hadoop.hbase.TableName getTablename()
IntegrationTestBasegetTablename in class IntegrationTestBaseprotected Set<String> getColumnFamilies()
IntegrationTestBasegetColumnFamilies in class IntegrationTestBaseprivate static double calcMean(String desc, IntegrationTestRegionReplicaPerf.Stat stat, List<IntegrationTestRegionReplicaPerf.TimingResult> results)
stat from a timing results.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.