Class MasterProcedureSchedulerPerformanceEvaluation
java.lang.Object
org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.master.procedure.MasterProcedureSchedulerPerformanceEvaluation
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
,org.apache.hadoop.util.Tool
public class MasterProcedureSchedulerPerformanceEvaluation
extends org.apache.hadoop.hbase.util.AbstractHBaseTool
Tool to test performance of locks and queues in procedure scheduler independently from other
framework components. Inserts table and region operations in the scheduler, then polls them and
exercises their locks Number of tables, regions and operations can be set using cli args.
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private static interface
private class
private class
private class
private class
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
org.apache.hadoop.hbase.util.AbstractHBaseTool.OptionsOrderComparator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final AtomicLong
static final int
static final int
static final int
static final String
static final int
static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option
static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option
static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private int
private int
private int
(package private) MasterProcedureSchedulerPerformanceEvaluation.ProcedureFactory[]
static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private String
private org.apache.hadoop.hbase.master.procedure.MasterProcedureScheduler
private final AtomicLong
WORKERSstatic final org.apache.hbase.thirdparty.org.apache.commons.cli.Option
private int
protected static final HBaseTestingUtility
private final AtomicLong
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()
static void
protected void
processOptions
(org.apache.hbase.thirdparty.org.apache.commons.cli.CommandLine cmd) (package private) long
runThreads
(Thread[] threads) Starts the threads and waits for them to finish.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
-
UTIL
-
DEFAULT_NUM_TABLES
- See Also:
-
NUM_TABLES_OPTION
-
DEFAULT_REGIONS_PER_TABLE
- See Also:
-
REGIONS_PER_TABLE_OPTION
public static final org.apache.hbase.thirdparty.org.apache.commons.cli.Option REGIONS_PER_TABLE_OPTION -
DEFAULT_NUM_OPERATIONS
- See Also:
-
NUM_OPERATIONS_OPTION
-
DEFAULT_NUM_THREADS
- See Also:
-
NUM_THREADS_OPTION
-
DEFAULT_OPS_TYPE
- See Also:
-
OPS_TYPE_OPTION
-
numTables
-
regionsPerTable
-
numOps
-
numThreads
-
opsType
-
procedureScheduler
-
ops
-
procIds
WORKERS -
yield
-
completed
-
-
Constructor Details
-
MasterProcedureSchedulerPerformanceEvaluation
-
-
Method Details
-
setupOperations
- Throws:
Exception
-
addOptions
- Specified by:
addOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
processOptions
- Specified by:
processOptions
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
-
runThreads
Starts the threads and waits for them to finish.- Returns:
- time taken by threads to complete, in milliseconds.
- Throws:
Exception
-
doWork
- Specified by:
doWork
in classorg.apache.hadoop.hbase.util.AbstractHBaseTool
- Throws:
Exception
-
main
- Throws:
IOException
-