public class ScalabilityNodeSuite extends ScalabilityAbstractSuite
The following system JVM properties can be defined to configure the suite.
loaders
- Controls the number of concurrent threads for loading blobs initially.
Defaults to 1.
testers
- Controls the number of concurrent tester threads. Defaults to 1.
nodeLevels
- Comma separated string property that governs the depth and the number of
nodes in the hierarchy. Defaults to 10, 5, 2.
densityLevel
- Controls the percentage of root nodes which will have sub nodes created.
Defaults to 100.
index
- Controls if the index definitions are to be created. Defaults to false.
asyncIndex
- Controls whether the indexing is async. Defaults to false.
noFullIndex
- Controls whether fulltext indexing is enabled or disabled. Defaults to false.
randDate
- Controls whether to generate random dates in a range. Defaults to false.
customType
- Controls if nodes created in the load have a custom node type. Defaults to false.
Modifier and Type | Class and Description |
---|---|
static class |
ScalabilityNodeSuite.Index |
ScalabilityAbstractSuite.ExecutionContext
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ASYNC_INDEX
Controls whether the indexing is async
|
static java.lang.String |
CTX_ACT_NODE_TYPE_PROP |
static java.lang.String |
CTX_DESC_SEARCH_PATHS_PROP |
static java.lang.String |
CTX_PAGINATION_KEY_PROP |
static java.lang.String |
CTX_REL_NODE_TYPE_PROP |
static java.lang.String |
CTX_ROOT_NODE_NAME_PROP |
static java.lang.String |
CUSTOM_DESC_NODE_TYPE |
static java.lang.String |
CUSTOM_ROOT_NODE_TYPE |
protected static boolean |
CUSTOM_TYPE
Controls if a customType is to be created
|
static java.lang.String |
DATE_PROP |
protected static int |
DENSITY_LEVEL
Controls the percentage of root nodes which will have sub nodes created.
|
static java.lang.String |
FILTER_PROP |
protected static boolean |
FULL_TEXT
Controls whether fulltext indexing is enabled or disabled.
|
protected static boolean |
INDEX
Controls if the index definitions are to be created.
|
ScalabilityNodeSuite.Index |
INDEX_TYPE
Type of index to be created
|
protected static int |
LOADERS
Controls the number of concurrent threads for loading blobs initially
|
protected static Logger |
LOG |
protected static java.util.List<java.lang.String> |
NODE_LEVELS
Controls the number of nodes at each level
|
protected java.util.List<java.lang.String> |
nodeTypes |
protected static boolean |
RAND_DATE
Controls whether to generate random dates in a range
|
static java.lang.String |
ROOT_NODE_NAME |
static java.lang.String |
SORT_PROP |
protected java.lang.Boolean |
storageEnabled |
protected static int |
TESTERS
Controls the number of concurrent tester threads
|
static java.lang.String |
TITLE_PROP |
protected Whiteboard |
whiteboard |
benchmarks, CREDENTIALS, CTX_SEARCH_PATHS_PROP, INCREMENTS, PROFILE, TEST_ID, WARMUP
Constructor and Description |
---|
ScalabilityNodeSuite(java.lang.Boolean storageEnabled) |
Modifier and Type | Method and Description |
---|---|
ScalabilitySuite |
addBenchmarks(ScalabilityBenchmark... tests)
Adds the benchmarks to run.
|
void |
beforeIteration(ScalabilityAbstractSuite.ExecutionContext context)
Executes before each test run
|
protected void |
beforeSuite()
Setup any options before the benchmarks.
|
protected void |
createIndexes(Session session) |
protected void |
createLoad(ScalabilityAbstractSuite.ExecutionContext context)
Creates the load for the search.
|
protected Repository[] |
createRepository(RepositoryFixture fixture) |
protected void |
executeBenchmark(ScalabilityBenchmark benchmark,
ScalabilityAbstractSuite.ExecutionContext context)
Runs the benchmark.
|
protected org.apache.jackrabbit.oak.scalability.suites.ScalabilityNodeSuite.Writer |
getWriter(ScalabilityAbstractSuite.ExecutionContext context,
org.apache.commons.math.stat.descriptive.SynchronizedDescriptiveStatistics writeStats,
int idx) |
protected void |
waitBeforeIterationFinish(long loadFinish) |
addBackgroundJob, afterIteration, afterSuite, getBenchmarks, getRepository, initBackgroundJobs, loginWriter, removeBenchmark, run, setPrintStream, setUp, shutdownBackgroundJobs, tearDown, toString
protected static final Logger LOG
protected static final int LOADERS
protected static final java.util.List<java.lang.String> NODE_LEVELS
protected static final int TESTERS
protected static final int DENSITY_LEVEL
protected static final boolean INDEX
protected static final java.lang.String ASYNC_INDEX
protected static final boolean FULL_TEXT
protected static final boolean RAND_DATE
protected static final boolean CUSTOM_TYPE
public static final java.lang.String CTX_DESC_SEARCH_PATHS_PROP
public static final java.lang.String CTX_ROOT_NODE_NAME_PROP
public static final java.lang.String CTX_ACT_NODE_TYPE_PROP
public static final java.lang.String CTX_REL_NODE_TYPE_PROP
public static final java.lang.String CUSTOM_ROOT_NODE_TYPE
public static final java.lang.String CUSTOM_DESC_NODE_TYPE
public static final java.lang.String DATE_PROP
public static final java.lang.String CTX_PAGINATION_KEY_PROP
public static final java.lang.String FILTER_PROP
public static final java.lang.String SORT_PROP
public static final java.lang.String TITLE_PROP
public static final java.lang.String ROOT_NODE_NAME
public final ScalabilityNodeSuite.Index INDEX_TYPE
protected final java.lang.Boolean storageEnabled
protected Whiteboard whiteboard
protected final java.util.List<java.lang.String> nodeTypes
public ScalabilityNodeSuite(java.lang.Boolean storageEnabled)
public ScalabilitySuite addBenchmarks(ScalabilityBenchmark... tests)
ScalabilitySuite
protected void beforeSuite() throws java.lang.Exception
ScalabilityAbstractSuite
beforeSuite
in class ScalabilityAbstractSuite
java.lang.Exception
protected void createIndexes(Session session) throws RepositoryException
RepositoryException
public void beforeIteration(ScalabilityAbstractSuite.ExecutionContext context) throws RepositoryException
beforeIteration
in class ScalabilityAbstractSuite
context
- the contextRepositoryException
protected void waitBeforeIterationFinish(long loadFinish)
protected void createLoad(ScalabilityAbstractSuite.ExecutionContext context) throws RepositoryException
context
- the contextRepositoryException
- the repository exceptionprotected org.apache.jackrabbit.oak.scalability.suites.ScalabilityNodeSuite.Writer getWriter(ScalabilityAbstractSuite.ExecutionContext context, org.apache.commons.math.stat.descriptive.SynchronizedDescriptiveStatistics writeStats, int idx) throws RepositoryException
RepositoryException
protected void executeBenchmark(ScalabilityBenchmark benchmark, ScalabilityAbstractSuite.ExecutionContext context) throws java.lang.Exception
ScalabilityAbstractSuite
executeBenchmark
in class ScalabilityAbstractSuite
benchmark
- the benchmark to executejava.lang.Exception
protected Repository[] createRepository(RepositoryFixture fixture) throws java.lang.Exception
createRepository
in class ScalabilityAbstractSuite
java.lang.Exception
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.