Class AddCPULoadAction
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
org.apache.hadoop.hbase.chaos.actions.AddCPULoadAction
Action that adds high cpu load to a random regionserver for a given duration
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.actions.Action
Action.ActionContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final longprivate static final org.slf4j.Loggerprivate final longFields inherited from class org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
clusterManager, timeoutFields inherited from class org.apache.hadoop.hbase.chaos.actions.Action
cluster, context, initialServers, initialStatus, KILL_DATANODE_TIMEOUT_DEFAULT, KILL_DATANODE_TIMEOUT_KEY, KILL_MASTER_TIMEOUT_DEFAULT, KILL_MASTER_TIMEOUT_KEY, KILL_NAMENODE_TIMEOUT_DEFAULT, KILL_NAMENODE_TIMEOUT_KEY, KILL_RS_TIMEOUT_DEFAULT, KILL_RS_TIMEOUT_KEY, KILL_ZK_NODE_TIMEOUT_DEFAULT, KILL_ZK_NODE_TIMEOUT_KEY, killDataNodeTimeout, killMasterTimeout, killNameNodeTimeout, killRsTimeout, killZkNodeTimeout, monkeyProps, skipMetaRS, START_DATANODE_TIMEOUT_DEFAULT, START_DATANODE_TIMEOUT_KEY, START_MASTER_TIMEOUT_DEFAULT, START_MASTER_TIMEOUT_KEY, START_NAMENODE_TIMEOUT_DEFAULT, START_NAMENODE_TIMEOUT_KEY, START_RS_TIMEOUT_DEFAULT, START_RS_TIMEOUT_KEY, START_ZK_NODE_TIMEOUT_DEFAULT, START_ZK_NODE_TIMEOUT_KEY, startDataNodeTimeout, startMasterTimeout, startNameNodeTimeout, startRsTimeout, startZkNodeTimeout -
Constructor Summary
ConstructorsConstructorDescriptionAddCPULoadAction(long duration, long processes, long timeout) Add high load to cpu -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringprotected org.slf4j.LoggerRetrieve the instance'sLogger, for use throughout the class hierarchy.protected voidMethods inherited from class org.apache.hadoop.hbase.chaos.actions.SudoCommandAction
init, performMethods inherited from class org.apache.hadoop.hbase.chaos.actions.Action
forceBalancer, getConf, getCurrentServers, killDataNode, killJournalNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, resumeRs, setBalancer, startDataNode, startJournalNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
-
Field Details
-
LOG
-
CPU_LOAD_COMMAND
- See Also:
-
duration
-
processes
-
-
Constructor Details
-
AddCPULoadAction
Add high load to cpu- Parameters:
duration- Duration that this thread should generate the load for in millisecondsprocesses- The number of parallel processes, should be equal to cpu threads for max load
-
-
Method Details
-
getLogger
Description copied from class:ActionRetrieve the instance'sLogger, for use throughout the class hierarchy. -
localPerform
- Specified by:
localPerformin classSudoCommandAction- Throws:
IOException
-
getCommand
-