Class RollingBatchRestartRsAction
java.lang.Object
org.apache.hadoop.hbase.chaos.actions.Action
org.apache.hadoop.hbase.chaos.actions.RestartActionBaseAction
org.apache.hadoop.hbase.chaos.actions.BatchRestartRsAction
org.apache.hadoop.hbase.chaos.actions.RollingBatchRestartRsAction
Restarts a ratio of the regionservers in a rolling fashion. At each step, either kills a server,
 or starts one, sleeping randomly (0-sleepTime) in between steps. The parameter maxDeadServers
 limits the maximum number of servers that can be down at the same time during rolling restarts.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static enumNested classes/interfaces inherited from class org.apache.hadoop.hbase.chaos.actions.ActionAction.ActionContext
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprotected intFields inherited from class org.apache.hadoop.hbase.chaos.actions.BatchRestartRsActionratioFields inherited from class org.apache.hadoop.hbase.chaos.actions.RestartActionBaseActionsleepTimeFields inherited from class org.apache.hadoop.hbase.chaos.actions.Actioncluster, 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 SummaryConstructorsConstructorDescriptionRollingBatchRestartRsAction(long sleepTime, float ratio) RollingBatchRestartRsAction(long sleepTime, float ratio, int maxDeadServers) RollingBatchRestartRsAction(long sleepTime, float ratio, int maxDeadServers, boolean skipMetaRS) 
- 
Method SummaryMethods inherited from class org.apache.hadoop.hbase.chaos.actions.RestartActionBaseActiongracefulRestartRs, restartDataNode, restartJournalNode, restartMaster, restartNameNode, restartRs, restartZKNode, sleepMethods inherited from class org.apache.hadoop.hbase.chaos.actions.ActionforceBalancer, getConf, getCurrentServers, init, killDataNode, killJournalNode, killMaster, killNameNode, killRs, killZKNode, modifyAllTableColumns, modifyAllTableColumns, resumeRs, setBalancer, startDataNode, startJournalNode, startMaster, startNameNode, startRs, startZKNode, stopRs, suspendRs, unbalanceRegions
- 
Field Details- 
LOG
- 
maxDeadServers
 
- 
- 
Constructor Details- 
RollingBatchRestartRsAction
- 
RollingBatchRestartRsAction
- 
RollingBatchRestartRsActionpublic RollingBatchRestartRsAction(long sleepTime, float ratio, int maxDeadServers, boolean skipMetaRS) 
 
- 
- 
Method Details- 
getLoggerDescription copied from class:ActionRetrieve the instance'sLogger, for use throughout the class hierarchy.- Overrides:
- getLoggerin class- BatchRestartRsAction
 
- 
perform- Overrides:
- performin class- BatchRestartRsAction
- Throws:
- Exception
 
- 
selectServers- Throws:
- IOException
 
- 
mainSmall test to ensure the class basically works.- Throws:
- Exception
 
 
-