public class CachePerfPrms extends BasePrms
| Modifier and Type | Class and Description |
|---|---|
static class |
CachePerfPrms.Frequency |
| Modifier and Type | Field and Description |
|---|---|
static Long |
allowConflicts
(boolean)
Whether to allow commitConflictException (true), or to rethrow the
exception if it occurs (false).
|
static Long |
allowNulls
(boolean)
Whether to allow gets to return null values without causing test failure.
|
static Long |
batchSeconds
(int)
The number of seconds in each batch for the current task
Defaults to -1 (not usable).
|
static Long |
batchSize
(int)
The number of iterations in each batch for the current task.
|
static Long |
batchTerminatorClass
(String)
The class name to invoke at the termination of each batch.
|
static Long |
batchTerminatorMethod
(String)
The method to invoke to check for batch termination.
|
static Long |
bulkOpMapSize
(int)
The number of entries in the bulk op map.
|
static Long |
clientNameToBounce
(String)
Client name of VM to bounce when executing
#bounceTask. |
static Long |
commitPercentage
(int)
The percentage of transactions that should be committed (vs.
|
static Long |
destroyAfterGet
(boolean)
Whether to destroy objects after gets.
|
static Long |
destroyLocally
(boolean)
Whether, when
destroyAfterGet is true, to destroy locally
rather than throughout the distributed system. |
static int |
DISJOINT_AS_POSSIBLE |
static Long |
dummyBulkOps
(boolean)
Whether to dummy up each bulk op with regular ops.
|
static Long |
gatewayQueueEntries
(int)
The number of keys to put into a gateway queue.
|
static Long |
hitPercentage
(int)
The percentage of operations that should be hits.
|
static Long |
hitsAndMisses
(int)
Indicates if this test does a mixture of hits & misses
Currently only supported at TestConfig level for
C cache performance tests.
|
static Long |
interestBatchSize
(int)
The number of keys to register interest in at one time.
|
static Long |
invalidateAfterGet
(boolean)
Whether to invalidate objects after gets.
|
static Long |
invalidateLocally
(boolean)
Whether, when
invalidateAfterGet is true, to destroy locally
rather than throughout the distributed system. |
static Long |
isMainWorkload
(boolean)
Whether this task is the main workload.
|
static Long |
keepDurableInterest
(boolean)
Whether or not to keep a durable client connection interest list alive
when the durable client disconnects.
|
static Long |
keyAllocation
(String)
The method to use when allocating keys to threads for cache operations.
|
static Long |
keyAllocationChunkSize
(int)
The size of each "chunk" in a chunked
keyAllocation. |
static Long |
keyPercentage
(int)
A percentage of maxKeys.
|
static Long |
keyType
(String)
Type of keys to create, as a fully qualified classname.
|
static Long |
logInterestRegex
(boolean)
Whether to log regular expressions when registering interest in them.
|
static Long |
LRUEvictions
(int)
The minimum number of LRU evictions required for termination of warmup,
or whatever else test code may choose to use this for.
|
static Long |
LRUEvictionsMaxWaitSec
(int)
The maximum amount of time to wait for LRU evictions to terminate warmup,
or whatever else test code may choose to use this for.
|
static Long |
LRUEvictionsMinWaitSec
(int)
The minimum amount of time to wait for LRU evictions to terminate warmup,
or whatever else test code may choose to use this for.
|
static Long |
maxExecutions
(int)
The number of executions to carry out.
|
static Long |
maxKeys
(int)
The maximum number of keys used in the test, where
maxKeys-1
is the maximum key. |
static Long |
maxRecentKeys
(int)
The maximum number of recent keys to consider.
|
static Long |
numDestroys
(int)
The minimum number of destroys required for termination of warmup,
or whatever else test code may choose to use this for.
|
static Long |
numDestroysMaxWaitSec
(int)
The maximum amount of time to wait for destroys to terminate warmup,
or whatever else test code may choose to use this for.
|
static Long |
numDestroysMinWaitSec
(int)
The minimum amount of time to wait for destroys to terminate warmup,
or whatever else test code may choose to use this for.
|
static Long |
numOperations
(int)
The number of operations used in
Terminators.terminateOnNumOperations(cacheperf.CachePerfClient). |
static Long |
numUpdates
(int)
Number of updates to do on the same object.
|
static Long |
numWanSites
(int)
The number of WAN sites in the test.
|
static Long |
objectType
(String)
Type of objects to create, as a fully qualified classname.
|
static Long |
optimizationCount
(int)
Whether, and how much, to optimize loops that support optimization.
|
static int |
OWN_KEY |
static int |
OWN_KEYS |
static int |
OWN_KEYS_CHUNKED |
static int |
OWN_KEYS_CHUNKED_RANDOM_WRAP |
static int |
OWN_KEYS_RANDOM_WRAP |
static int |
OWN_KEYS_WRAP |
static int |
PER_ITERATION |
static int |
PER_SECOND |
static int |
PER_TASK |
static int |
PSEUDO_RANDOM_UNIQUE |
static Long |
putPercentage
(int)
The percentage of operations that should be puts, for use with tasks that
mix operations, one of which is put.
|
static Long |
query
(String)
The query string.
|
static Long |
queryFromClause
(String)
The query from caluse.
|
static Long |
queryIndex
(String)
The query index string.
|
static Long |
queryRangeMax
(long)
The maximum random value for a query range.
|
static Long |
queryRangeMin
(long)
The minimum random value for a query range.
|
static Long |
queryRangeSize
(long)
The size of a query range.
|
static Long |
recentKeysPercentage
(int)
The percentage (roughly) of operations that will attempt to use a recently
used key, rather than obtaining a key with the current key settings (ownKeys,
etc.).
|
static Long |
registerDurableInterest
(boolean)
Whether or not to register durable (rather than non-durable) interest.
|
static Long |
resetKeysAfterTaskEnds
(boolean)
Whether to reset the current key and key count after the task has stopped
being scheduled.
|
static Long |
resetKeysBeforeTaskStarts
(boolean)
Whether to reset the current key and key count before the task has started
being scheduled.
|
static Long |
restartVMs
(boolean)
Whether or not to restart VMs after stopping
|
static Long |
restartWaitSec
(int)
The number of seconds to wait before restarting a VM that executes a
CachePerfClient.bounceTask(). |
static int |
SAME_KEY |
static int |
SAME_KEYS |
static int |
SAME_KEYS_RANDOM_WRAP |
static int |
SAME_KEYS_WRAP |
static int |
SCRAMBLED_ZIPFIAN |
static Long |
sleepBeforeOp
(boolean)
Whether to sleep before doing an operation.
|
static Long |
sleepMs
(int)
The time to sleep in milliseconds before doing an operation.
|
static Long |
sleepOpCount
(int)
The number of operations to do after sleeping for {link #sleepMs}.
|
static Long |
syncSleepMs
(int)
The number of milliseconds to sleep before syncing.
|
static Long |
taskTerminatorClass
(String)
The class name to invoke to check for task termination.
|
static Long |
taskTerminatorFrequency
(String)
The frequency with which to check for task termination during a task.
|
static Long |
taskTerminatorMethod
(String)
The method to invoke to check for task termination.
|
static Long |
trimIterations
(int)
The number of warmup iterations to do for the current task.
|
static Long |
trimSeconds
(int)
The number of warmup iterations to do for the current task.
|
static Long |
txSize
(int)
The number of iterations in each transaction, on a per-thread basis.
|
static Long |
useMeanKill
(boolean)
Whether to use a mean kill when executing
CachePerfClient.bounceTask(). |
static Long |
useShutDownAllMembers
(boolean)
Whether to use shutDownAllMembers to stop vms (for use with disk recovery)
Defaults to false.
|
static Long |
useTransactions
(boolean)
Whether to encase operations into a transaction.
|
static Long |
validateObjects
(boolean)
Whether to validate objects along the way, skipping over null values.
|
static Long |
waitForRecovery
(boolean)
Whether to wait for partitioned region redundancy recovery when
executing
CachePerfClient.bounceTask(). |
static Long |
waitForTrimSignal
(boolean)
Whether to wait for the trim signal before proceeding.
|
static Long |
warmupTerminatorClass
(String)
The class name to invoke to check for warmup termination.
|
static Long |
warmupTerminatorFrequency
(String)
The frequency with which to check for warmup termination during a task.
|
static Long |
warmupTerminatorMethod
(String)
The method to invoke to check for warmup termination.
|
static Long |
workIterations
(int)
The number of timing iterations to do for the current task.
|
static Long |
workSeconds
(int)
The number of timing seconds to do for the current task.
|
static int |
ZIPFIAN |
| Constructor and Description |
|---|
CachePerfPrms() |
dumpKeys, keyForName, nameForKey, setValues, tab, tasktabpublic static Long isMainWorkload
Transparently shadows the trim interval and statistics for the task as "ops", without adding another call to System.currentTimeMillis().
public static Long trimSeconds
public static Long workSeconds
public static Long batchSeconds
public static Long trimIterations
public static Long workIterations
public static Long batchSize
public static Long txSize
The batch terminator for a transactional task must have a large enough granularity to allow the task to perform at least txSize operations in each complete batch. Otherwise it is a configuration error. Fewer than txSize operations are allowed in a batch that hits task termination before txSize operations are performed.
public static Long numOperations
Terminators.terminateOnNumOperations(cacheperf.CachePerfClient).
Not for use with oneof or range.public static Long keyType
String.
Not for use with ONEOF or RANGE or as a task parameter.ObjectHelperpublic static Long keyAllocation
DEFAULT_KEY_ALLOCATION.public static final int SAME_KEY
public static final int SAME_KEYS
public static final int SAME_KEYS_WRAP
public static final int SAME_KEYS_RANDOM_WRAP
public static final int OWN_KEY
public static final int OWN_KEYS
public static final int OWN_KEYS_WRAP
public static final int OWN_KEYS_RANDOM_WRAP
public static final int OWN_KEYS_CHUNKED
public static final int OWN_KEYS_CHUNKED_RANDOM_WRAP
public static final int DISJOINT_AS_POSSIBLE
public static final int PSEUDO_RANDOM_UNIQUE
public static final int ZIPFIAN
public static final int SCRAMBLED_ZIPFIAN
public static Long keyAllocationChunkSize
keyAllocation.
Defaults to 1. Not for use with oneof or range.public static Long maxKeys
maxKeys-1
is the maximum key. Required parameter. Not intended for use
with oneof or range.public static Long resetKeysAfterTaskEnds
public static Long resetKeysBeforeTaskStarts
public static Long objectType
ObjectHelper. Defaults to
SizedString with the default size.ObjectHelperpublic static Long allowNulls
public static Long validateObjects
allowNulls to configure handling of nulls.public static Long invalidateAfterGet
invalidateLocally. Not for use with oneof or range.
Not for use with oneof or range.public static Long invalidateLocally
invalidateAfterGet is true, to destroy locally
rather than throughout the distributed system. Defaults to true.
Not for use with oneof or range.public static Long destroyAfterGet
destroyLocally. Not for use with oneof or range.public static Long destroyLocally
destroyAfterGet is true, to destroy locally
rather than throughout the distributed system. Defaults to true.
Not for use with oneof or range.public static Long sleepBeforeOp
public static Long sleepMs
public static Long sleepOpCount
public static Long gatewayQueueEntries
public static Long bulkOpMapSize
public static Long dummyBulkOps
public static Long interestBatchSize
public static Long logInterestRegex
public static Long registerDurableInterest
public static Long keepDurableInterest
public static Long restartVMs
public static Long batchTerminatorClass
DEFAULT_CLASS.
See also batchTerminatorMethod.public static Long batchTerminatorMethod
batchTerminatorClass.public static Long warmupTerminatorClass
DEFAULT_CLASS.
See also warmupTerminatorMethod.public static Long warmupTerminatorMethod
warmupTerminatorClass.public static Long warmupTerminatorFrequency
public static Long taskTerminatorClass
DEFAULT_CLASS.
See also taskTerminatorMethod.public static Long taskTerminatorMethod
taskTerminatorClass.public static Long taskTerminatorFrequency
public static final int PER_TASK
public static final int PER_ITERATION
public static final int PER_SECOND
public static Long hitsAndMisses
public static Long hitPercentage
public static Long putPercentage
public static Long LRUEvictions
public static Long LRUEvictionsMinWaitSec
LRUEvictionspublic static Long LRUEvictionsMaxWaitSec
LRUEvictionspublic static Long numDestroys
public static Long numDestroysMinWaitSec
numDestroyspublic static Long numDestroysMaxWaitSec
numDestroyspublic static Long numUpdates
Used by CachePerfClient.updateDataTask(), for example.
public static Long recentKeysPercentage
public static Long maxRecentKeys
public static Long syncSleepMs
public static Long useTransactions
public static Long allowConflicts
public static Long commitPercentage
public static Long maxExecutions
This parameter is useful when a task needs to do something specific on its last scheduled execution (which cannot be done using maxTimesToRun since there is no way for the task to know it is the final execution).
CachePerfClient.bounceTask() uses this parameter to
execute a fixed number of times then send a signal to clients executing
other tasks so that they all terminate together.
public static Long restartWaitSec
CachePerfClient.bounceTask(). Defaults to 0.public static Long useMeanKill
CachePerfClient.bounceTask(). Defaults to false.public static Long clientNameToBounce
#bounceTask. Defaults to null.public static Long waitForRecovery
CachePerfClient.bounceTask(). Defaults to false.
NOTE: Requires ResourceObservers to be installed on datahosts.
public static Long waitForTrimSignal
public static Long useShutDownAllMembers
public static Long query
public static Long queryIndex
public static Long queryFromClause
public static Long queryRangeMin
public static Long queryRangeMax
public static Long queryRangeSize
public static Long numWanSites
CachePerfClient.numWanSites. That method
which assumes a certain format for client names.public static Long keyPercentage
public static Long optimizationCount
public static boolean isMainWorkload()
public static int getTrimSeconds()
public static int getWorkSeconds()
public static int getBatchSeconds()
public static int getTrimIterations()
public static int getWorkIterations()
public static int getBatchSize()
public static int getTxSize()
public static int getNumOperations()
public static String getKeyType()
public static int getKeyAllocation()
public static int getKeyAllocationChunkSize()
public static int getMaxKeys()
public static boolean resetKeysAfterTaskEnds(TestTask task)
public static boolean resetKeysBeforeTaskStarts(TestTask task)
public static String getObjectType()
public static boolean allowNulls()
public static boolean validateObjects()
public static boolean invalidateAfterGet()
public static boolean invalidateLocally()
public static boolean destroyAfterGet()
public static boolean destroyLocally()
public static boolean sleepBeforeOp()
public static int getSleepMs()
public static int getSleepOpCount()
public static int getGatewayQueueEntries()
public static int getBulkOpMapSize()
public static boolean getDummyBulkOps()
public static int getInterestBatchSize()
public static boolean logInterestRegex()
public static boolean registerDurableInterest()
public static boolean getKeepDurableInterest()
public static boolean restartVMs()
public static String getBatchTerminatorClass()
public static String getBatchTerminatorMethod()
public static String getWarmupTerminatorClass()
public static String getWarmupTerminatorMethod()
public static CachePerfPrms.Frequency getWarmupTerminatorFrequency()
public static String getTaskTerminatorClass()
public static String getTaskTerminatorMethod()
public static CachePerfPrms.Frequency getTaskTerminatorFrequency()
public static int getPutPercentage()
public static int LRUEvictions()
public static int LRUEvictionsMinWaitSec()
public static int LRUEvictionsMaxWaitSec()
public static int numDestroys()
public static int numDestroysMinWaitSec()
public static int numDestroysMaxWaitSec()
public static int getNumUpdates()
public static int recentKeysPercentage()
public static int maxRecentKeys()
public static int syncSleepMs()
public static boolean useTransactions()
public static boolean allowConflicts()
public static int getCommitPercentage()
public static int getMaxExecutions()
public static int getRestartWaitSec()
public static boolean useMeanKill()
public static String getClientNameToBounce()
public static boolean waitForRecovery()
public static boolean waitForTrimSignal()
public static boolean useShutDownAllMembers()
public static String getQuery()
public static String getQueryIndex()
public static String getQueryFromClause()
public static long getQueryRangeMin()
public static long getQueryRangeMax()
public static long getQueryRangeSize()
public static int getNumWanSites()
public static int getKeyPercentage()
public static int getOptimizationCount()
public static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.