Class MonkeyFactory
java.lang.Object
org.apache.hadoop.hbase.chaos.factories.MonkeyFactory
- Direct Known Subclasses:
CalmMonkeyFactory,DataIssuesMonkeyFactory,DistributedIssuesMonkeyFactory,MasterKillingMonkeyFactory,MobNoKillMonkeyFactory,MobSlowDeterministicMonkeyFactory,NoKillMonkeyFactory,ServerAndDependenciesKillingMonkeyFactory,ServerKillingMonkeyFactory,SlowDeterministicMonkeyFactory,StressAssignmentManagerMonkeyFactory,UnbalanceMonkeyFactory
Base class of the factory that will create a ChaosMonkey.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected longprotected longprotected longprotected floatprotected longstatic final Stringprotected longHow often to introduce the chaos.protected floatprotected floatstatic final Stringprotected longprotected longstatic final Stringprotected floatprotected longprotected longstatic final Stringstatic Map<String,MonkeyFactory> protected longprotected longprotected Stringprotected longprotected longprotected booleanprivate static final org.slf4j.Loggerstatic final Stringstatic final Stringstatic final Stringprotected longprotected longprotected longprotected longprotected longprotected Stringprotected floatprotected longstatic final Stringprotected Propertiesprotected longprotected longprotected longprotected longprotected longprotected longprotected longprotected longprotected floatprotected longprotected floatprotected longstatic final Stringstatic final Stringstatic final Stringprotected longstatic final Stringprotected org.apache.hadoop.hbase.TableNamestatic final Stringprotected IntegrationTestingUtilityprotected longprotected longprotected long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ChaosMonkeybuild()static MonkeyFactorygetFactory(String factoryName) protected final voidsetColumnFamilies(Set<String> columnFamilies) setProperties(Properties props) setTableName(org.apache.hadoop.hbase.TableName tableName)
-
Field Details
-
LOG
-
tableName
-
columnFamilies
-
util
-
properties
-
action1Period
-
action2Period
-
action3Period
-
action4Period
-
moveRegionsMaxTime
-
moveRegionsSleepTime
-
moveRandomRegionSleepTime
-
restartRandomRSSleepTime
-
batchRestartRSSleepTime
-
batchRestartRSRatio
-
restartActiveMasterSleepTime
-
rollingBatchRestartRSSleepTime
-
rollingBatchRestartRSRatio
-
restartRsHoldingMetaSleepTime
-
compactTableRatio
-
compactRandomRegionRatio
-
decreaseHFileSizeSleepTime
-
decreaseHFileSizeMinHFileSize
-
decreaseHFileSizeHFileSizeJitter
-
gracefulRollingRestartTSSLeepTime
-
rollingBatchSuspendRSSleepTime
-
rollingBatchSuspendRSRatio
-
snapshotTableTtl
-
cpuLoadDuration
-
cpuLoadProcesses
-
networkIssueTimeout
-
networkIssueDuration
-
networkIssueRation
-
networkIssueDelay
-
networkIssueInterface
-
fillDiskTimeout
-
fillDiskPath
-
fillDiskFileSize
-
fillDiskIssueduration
-
restartRandomRsExceptMetaSleepTime
-
restartActiveNameNodeSleepTime
-
restartRandomDataNodeSleepTime
-
restartRandomJournalNodeSleepTime
-
restartRandomZKNodeSleepTime
-
chaosEveryMilliSec
How often to introduce the chaos. If too frequent, sequence of kills on minicluster can cause test to fail when Put runs out of retries. -
waitForUnbalanceMilliSec
-
waitForKillMilliSec
-
waitAfterBalanceMilliSec
-
killMetaRs
-
CALM
- See Also:
-
SLOW_DETERMINISTIC
- See Also:
-
UNBALANCE
- See Also:
-
SERVER_KILLING
- See Also:
-
STRESS_AM
- See Also:
-
NO_KILL
- See Also:
-
MASTER_KILLING
- See Also:
-
MOB_NO_KILL
- See Also:
-
MOB_SLOW_DETERMINISTIC
- See Also:
-
SERVER_AND_DEPENDENCIES_KILLING
- See Also:
-
DISTRIBUTED_ISSUES
- See Also:
-
DATA_ISSUES
- See Also:
-
CONFIGURABLE_SLOW_DETERMINISTIC
- See Also:
-
FACTORIES
-
-
Constructor Details
-
MonkeyFactory
public MonkeyFactory()
-
-
Method Details
-
setTableName
-
setColumnFamilies
-
setUtil
-
setProperties
-
loadProperties
-
build
-
getFactory
-